- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 01-15-2013 05:32 AM
(2110 views)
Hi,
Is it possible to a use a micro variable create from AAA data set by using call symput and call that macro with in AAA data set ? Please explain with example .
Thanks in advance ,
Ashwini
4 REPLIES 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi Ashwini,
you cannot use the variable in same data step
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Actually you can, using the symget function. But it's an odd operation...
Data never sleeps
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Would you post a code sample showing how?
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Here you go:
data test;
*set AAA;
var = 1;
call symput('var', var);
var2 = symget('var');
run;