Re: &&&&&&Talbot,
Its basic macro aper math. With each pass of the macro processor it reduces
&& to &.
in yoru case: %put &&mlv&mlin. = &&&&&&mlv&mlin. ;
1st pass:
&mlv5 = &&&mlv5
2nd Pass:
Daisy = &Daisy
3rd Pass :
Daisy = Yellow
Toby Dunn
From: Talbot Michael Katz <topkatz@MSN.COM>
Reply-To: Talbot Michael Katz <topkatz@MSN.COM>
To: SAS-L@LISTSERV.UGA.EDU
Subject: &&&&&&
Date: Thu, 9 Jun 2005 13:38:44 -0400
Received: from malibu.cc.uga.edu ([128.192.1.103]) by MC8-F21.hotmail...
&& and &What exactly is the difference between && and & (|| and |)? When does
it generates different results? Is the & wrong now from R14 on?
Best regards
Prom
Prom wrote:
> What exactly is the difference between && and & (|| and |)? When does
> it generates different results? Is the & wrong now from R14 on?
>
> Best regards
> Prom
'help &' shows:
Logical operators.
Short-circuit logical AND &&
Short-circuit logical OR ||
and - Element-wise logical AND &...
& and &How can one stop a browser from converting
&
to
& ?
We have a textarea in our system wehre a user can type in some html code
and have it saved to the database. When the data is retireved and
redisplayed it is displayed as simply &.
HTML snippet:
<TEXTAREA NAME="p_html" ROWS=6 COLS=70 ALIGN="VIRTUAL" WRAP="YES">
fred
&
&
</TEXTAREA>
When displayed, the user predictably sees
fred
&
&
What workarounds are there for this - I am sure it's a problem for
others - is there a way...
Re: &&&&&& #3toby dunn <tobydunn@hotmail.com> replied:
> Alan,
>
> I disagree with that statement. I think the best solution would be to
build
> the dang thing the way he want with less macros. By sending your code
out
> then back in is in MO to much hassel for too little.
>
> the whole thingy could be done like this:
>
> data one ;
> flower = 'Daisy' ;
> color = 'Yellow' ;
> run ;
>
> data two ;
> set one ;
> call symput ( compress('text'||_n_),compbl(flower||'='||color) ) ;
> call symput ( 'index' , compre...
Re: &&&&&& #9"I have found that while in certain situations this may
be the only way to accomplish something easily, it is over used and causes
way more headaches than it is worth"
My feeling on macros...
Thanks,
Alan
Savian
"Bridging SAS and Microsoft Technologies"
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of toby
dunn
Sent: Thursday, June 09, 2005 12:56 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Re: &&&&&&
Alan,
I seem to have started a hail storm here and I probably should have stated
earlier that I don'...
Re: &&&&&& #7Alan,
I seem to have started a hail storm here and I probably should have stated
earlier that I don't disagree with SCL or a rework of the code, but rather
building and then sending the code out to a temp file and then %including it
back in I like not. I have found that while in certain situations this may
be the only way to accomplish something easily, it is over used and causes
way more headaches than it is worth. As for the rest of your post I am
right behind you.
Toby Dunn
From: Alan Churchill <SASL001@SAVIAN.NET>
Reply-To: Alan Churchill <SASL001@SAVIAN.NET>
To: ...
Re: &&&&&& #11Michael,
Where were you when I needed you? Just how long have you kept that naughty
question bottled up where it cannot see the light of day? How many others
harbor that naughty question? Well, all of you got some answers today.
Some technically perfect regurgitations of the SAS documentation without a
care about consequences which those who don't like to read for themselves
will find somewhat useful. Some sagely suggesting that some newer SAS
Constructs might be worth investigating, and, indeed, there may be something
worth examining about your approach to solving problems when you t...
Re: &&&&&& #8On Thu, 9 Jun 2005 13:38:44 -0400, Talbot Michael Katz <topkatz@MSN.COM> wrote:
>Hi.
>
>It requires SIX ampersands to resolve the macro variable example below:
>
>data _null_ ;
> set DS1 end = last ;
> call symput("mlv" || compress(put(_N_,best32.)), mli)
> ;
> call symput(mli, tdt) ;
> if last then do ;
> call symput("mlin", compress(put(_N_,best32.))) ;
> end ;
>run ;
>%put &&mlv&mlin. = &&&&&&mlv&mlin. ;
>
>(So, if there are five observations in the data set, and the fifth va...
Re: &&&&&& #12Talbot,
From another message you already seem satisfied with the
information given about your problem, but I will add my penny
thoughts for they give a different point of view. The basic
question might be interpreted as, "Why does it take so many
ampersands to express 'daisy=yellow'?" The implied question
might be what is wrong with my structure and how should it be
fixed? I am interested in both.
A macro variable can be thought of as a name pointing at a value.
So a name can point at a name that can point at a value, etc.
Let's look at the problem by analogy. Suppo...
Re: &&&&&& #10Thank you, Toby et al for your answers, opinions, advice, criticism, etc.
I almost think I'm beginning to get it.
Let me regurgitate this to be sure:
Given &&&&&&mlv&mlin., I resolve &mlin. = 5 and reduce the &&&&&& to &&& to
get &&&mlv5.
Then I resolve &mlv5. = DAISY and reduce the && to & to get &DAISY.
Finally I resolve &DAISY. = YELLOW.
So, it looks to me like once I reach a stage where I have a string of
ampersands followed by a "pure" name (i.e., one with no ampersa...
Re: &&&&&& #13Bold=Ian Whitlock
Faint Italics=Joe Whitehurst
A macro variable can be thought of as a name pointing at a value.
A named scl list item can be thought of as a name pointing at a value.
So a name can point at a name that can point at a value, etc.
So a named scl list item can be thought of as a named scl list item that can
point at a named scl list item that can point at a named scl list item that
can point at a value which can continue to whatever level of abstraction you
wish without ever using any concatenated ampersands.
Let's look at the problem by analogy. Suppose you go to a pa...
Re: &&&&&& #6This is a prime example I use when I discuss what is wrong with the macro
language. Yes, you can figure it out but an alternative would be to simply
write your data step code out and then bring it back in so you know what is
being submitted.
data _null_ ;
file 'c:\myfile.sas' ;
put 'data ...;' ;
...more put statements...
run;
%include 'c:\myfile.sas' ;
Others will argue for SCL or something else. Regardless, this application
probably requires a complete rethink if you are using 6 ampersands.
Thanks,
Alan
Savian
"Bridging SAS and Microsoft Technologies...
Re: &&&&&& #4> From: Talbot Michael Katz
> It requires SIX ampersands to resolve the macro variable
> example below:
>
> data _null_ ;
> set DS1 end = last ;
> call symput("mlv" || compress(put(_N_,best32.)), mli)
> ;
> call symput(mli, tdt) ;
> if last then do ;
> call symput("mlin", compress(put(_N_,best32.))) ;
> end ;
> run ;
> %put &&mlv&mlin. = &&&&&&mlv&mlin. ;
>
> (So, if there are five observations in the data set, and the
> fifth value of
> mli is "DAISY" and the fi...
Re: &&&&&& #2Alan,
I disagree with that statement. I think the best solution would be to build
the dang thing the way he want with less macros. By sending your code out
then back in is in MO to much hassel for too little.
the whole thingy could be done like this:
data one ;
flower = 'Daisy' ;
color = 'Yellow' ;
run ;
data two ;
set one ;
call symput ( compress('text'||_n_),compbl(flower||'='||color) ) ;
call symput ( 'index' , compress(_n_) ) ;
run ;
%put &&text&index ;
Toby Dunn
From: Alan Churchill <SASL001@SAVIAN.NET>
Reply-To: A...
#######modernpractice.webs.com&&&&&&&#######modernpractice.webs.com&&&&&&&
play games win prizes
nice friends
cute only
here nice music
...
#######modernpractice.webs.com&&&&&&&#######modernpractice.webs.com&&&&&&&
play games win prizes
nice friends
cute only
here nice music
...
'&&&&a'="&&&&a."I need a data step that is equivalent to
data _NULL_;
file print;
put '&&&&&&a=' "&&&&&&a";
run;
Yet the number of & is a variable, I need to write a Macro, so far I
got only half of the code('&&&&&&a.='), I don't know how to put
the other half ("&&&&&&a.") into Macro
Thanks.
%Macro R(k);
data _NULL_;
file print;
put
%do i= 1 %to &k.;
'&'
%end;
'a='
;
run;
%mend;
%R(10);
==================================================...
MIT Kerberos KDC & W2K Client: Changing expired password issueMIT Kerberos KDC & W2K Client: Changing expired password issueHi,
I also experienced the same problem as William
G.Zereneh
(http://mailman.mit.edu/pipermail/kerberos/2004-May/005341.html).
I'm able to change the password using ctrl-alt-del,
but when the password is expired and windows asks me
to change the password, I encountered "Domain
MIT.REALM.COM is not available" error.
As I sniff the packet, it noticed that it sent a CLDAP
query message with filter: (&(DnsDomain =
MIT.REALM.COM)(Host = myhostname)(NtVer=\006)
which is returned NULL by my
_ldap._tcp.dc._msdcs.REALM.MIT.COM
How to resolve this problem ? maybe there's a missin...
A && B && ( C && D )Hi all,
I've four conditions expression, A, B, C, and D.
Are the following two forms equivalent or not?
A && B && ( C && D )
A && B && C && D
Regards
--
..: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.
Hongyi Zhao <hongyi.zhao@gmail.com> wrote:
>Are the following two forms equivalent or not?
>
>A && B && ( C && D )
>A && B && C && D
Yes. In either case, _all_ variables must be true for the expression to
be true.
The AND operato...
Rebuilding... Over & over &over &over...Does anyone know what would cause an assembly to keep rebuilding over
& over after every move I make? After every mate, axis inserted, or
sketch editied, it rebuilds & rebuilds ten to fifteen times for one or
two minutes. It took me ten minutes to position three parts in a
small assembly of a mold. It seems to be rebuilding the same part over
& over.
This mold has three main parts & about ten pieces of hardware (pins,
bushings, etc...), so it should not take more than a couple of seconds
to rebuild.
Could a circular reference cause this? If so, how would I find it?
Maybe ...
& versus &&When I use &, I get the following message:
"Use && instead of & as the AND operator in (scalar) conditional statements."
I wanted to compare two vectors element by element, as well write a conditional statement for just one of the elements of one of the vectors (i.e., solution1(13)>=0 & solution1~=solution2). If I use &&, I can't compare the two vectors as a whole, i.e., element by element. On a simple test I performed, it seemed that & worked fined for writing a conditional statement for just one of the elements.
I hope I'm makin...
шлюхи москва &
'[image: http://spy-soft-phone.com/sosihuy/2598.jpg ]'
(http://93.174.88.196/kupit-putanu.php)
новосибирск
досуг
проститутки
проститутки
г волжс...
москва где сн&
'[image: http://spy-soft-phone.com/sosihuy/745.jpg ]'
(http://93.174.88.196/kupit-putanu.php)
За столом
сидел
худощавый
высокий
мужчина в
равном ...
шлюхи с асбес&
'[image: http://spy-soft-phone.com/sosihuy/606.jpg ]'
(http://93.174.88.196/kupit-putanu.php)
шлюхи
ясногорска
проститутки
города
выборга
интим...