Date: Tue, 25 Oct 2005 14:38:05 -0700
Reply-To: David L Cassell <davidlcassell@MSN.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: David L Cassell <davidlcassell@MSN.COM>
Subject: Re: Saving 3 lines of array declaration/So Concise that it
becomes Scary/proc compare valid?
Content-Type: text/plain; format=flowed
>Refering to my post on Oct 20, I was looking for a more simple way for
>my code, got a suggestion (relating to the if statement) and implemented
>it the following way.
>array q q:;
>do over q;
>if q~=. then q=0<q<3;
>Now I experimented some more and found an very concise code that seems
>almost scary to me. Is following code a valid substitution for the above
>one - omitting an explicit array declaration?
>if q: ~=. then q: = 0< q: <3;
>I run a proc compare on both of the resulting datasets and it shows they
>are exactly the same, however, are there loopholes that proc compare
This didn't work for me either.
Are you *sure* this ran for you? Can you show us the log where it says that
the data step ran and created the file you were expecting?
Otherwise, you ran the code, it failed to create the new data set, and it
the *previous* copy of this file for your use. That file matched up with
test file, and you found no differences. But it wasn't created using this
That's my guess, anyway.
Now if you were programming in Perl or APL, I might expect some sort of
resultant from this.
David L. Cassell
3115 NW Norwood Pl.
Corvallis OR 97330
Express yourself instantly with MSN Messenger! Download today - it's FREE!