f



Re: Converting Macro Variable to a SAS Dataset Variable

Refer to my previous answer; if you put them in a data set then =
transpose
the data set, you avoid macro variables altogether.  However, to answer =
the=20
question:

data newtable;
informat p1 8.;
p1=3D&p1;
run;

To assign character variables, use the macro variable in double quotes
informat char_var $20.;
char_var=3D"&macro_var";

-Mary

  ----- Original Message -----=20
  From: Siddharth Jain=20
  To: SAS-L@LISTSERV.UGA.EDU=20
  Sent: Wednesday, March 18, 2009 10:22 AM
  Subject: Converting Macro Variable to a SAS Dataset Variable


  If I have a macro variable p1 where %put <<p1>>; results in <<p1>> =
01,02,03,06


  How do I bring value of p1 to a dataset. Can I make a dataset variable =
which
  has the same values as of p1.


  Thanks in advance for your help,
  Siddharth
0
mlhoward (1803)
3/18/2009 3:53:37 PM
comp.soft-sys.sas 142827 articles. 4 followers. Post Follow

0 Replies
980 Views

Similar Articles

[PageSpeed] 24

Reply: