| Date: | Sun, 9 Feb 2003 23:19:52 +0000 |
| Reply-To: | John Whittington <John.W@MEDISCIENCE.CO.UK> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | John Whittington <John.W@MEDISCIENCE.CO.UK> |
| Subject: | Re: macro return dataset variables as a string |
|
| In-Reply-To: | <E18hzky-00060F-00@coumxnn01.netbenefit.co.uk> |
| Content-Type: | text/plain; charset="us-ascii"; format=flowed |
|---|
At 22:06 09/02/03 +0000, Roger Lustig wrote:
>CALL SYMPUT executes at the end of the DATA step, so you'll only get the
>last value.
Roger, I'm not sure what you mean by that:
5948 data _null_ ;
5949 call symput('one', 'this is one') ;
5950 x = symget('one') ;
5951 put x= ;
5952 call symput('one', 'this is two') ;
5953 x = symget ('one') ;
5954 put x= ;
5955 call symput('one', 'this is three') ;
5956 x = symget('one') ;
5957 put x= ;
5958 run ;
x=this is one
x=this is two
x=this is three
Kind Regards,
John
----------------------------------------------------------------
Dr John Whittington, Voice: +44 (0) 1296 730225
Mediscience Services Fax: +44 (0) 1296 738893
Twyford Manor, Twyford, E-mail: John.W@mediscience.co.uk
Buckingham MK18 4EL, UK mediscience@compuserve.com
----------------------------------------------------------------
|