| Date: | Tue, 4 Aug 2009 14:13:04 -0500 |
| Reply-To: | Joe Matise <snoopy369@GMAIL.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Joe Matise <snoopy369@GMAIL.COM> |
| Subject: | Re: do loop infinite |
|
| In-Reply-To: | <200908041851.n74Ap98P028334@malibu.cc.uga.edu> |
| Content-Type: | text/plain; charset=ISO-8859-1 |
What do you want to do precisely? I don't see why you'd want a loop there.
I imagine it would be:
if a ='1' then x = 1;
else do;
x = 2;
y = a; (or, use input to avoid the warning)
end;
What do you need to loop for??
-Joe
On Tue, Aug 4, 2009 at 1:51 PM, SUBSCRIBE SAS-L Anonymous <
lqiantobe22@yahoo.com> wrote:
> Hi folks,
> Is it possible to make a do loop infinite for the following code(maybe need
> to use %macro)?anyone can help me out?
>
> if a='1' then x=1;
> if a='2' then do;x=2;y=2;end;
> if a='3' then do;x=2;y=3;end;
> if a='4' then do;x=2;y=4;end;
> if a='5' then do;x=2;y=5;end;
> ...... (infinite )
>
> All suggestions are welcome. Thanks very much.
> _yoyo
>
|