[prev in list] [next in list] [prev in thread] [next in thread]
List: sas-l
Subject: Re: checking null string in macro
From: Bunky <leahygNOleSPAM () PPRD ! ABBOTT ! COM ! INVALID>
Date: 2000-03-31 22:37:37
[Download RAW message or body]
It should be as simple as:
%IF &RAND^= %THEN %DO;
random &RAND
%END;
Good luck!
Gerald Leahy
In article <Pine.LNX.3.96L.1000331112645.1523B-
100000@istat09.stat.wisc.edu>, Jun Yan <jyan@stat.wisc.edu>
wrote:
> Hi,
> I am trying to creat a simple macro like this,
> %macro testing(dat, mod, clas, rand)
> proc mixed data = &dat;
> class &clas;
> model &mod;
> %if length(&rand)=0 %then random &rand;
> %mend;
> I want the random statement only when &rand is not
> null, but
> length(&rand) seems not working. Is there an elegant
> way to do this?
> Jun
* Sent from AltaVista http://www.altavista.com Where you can also find related Web \
Pages, Images, Audios, Videos, News, and Shopping. Smart is Beautiful
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic