%macro makeVarMap(dsact);
proc transpose data=&dsform out=tempform (keep =_name_);
var c1--no;
run;
%mend;
%macro makeVarMap(thesis.sb_v_12);
doesn't work while following codes works
proc transpose data=thesis.sb_v_12 out=tempform (keep =_name_);
var c1--no;
run;
thesis.sb_v_12 has several variables like c1,c2,c3,n1,n2,n3 and end with no.
and the error codes seems point to the irregular format of dataset name :thesis.sb_v_12,but this kind of naming method works with my
other macros.
Can anyone give a thought?
Thanks.
I noticed a problem.
%macro makeVarMap(dsact);
proc transpose data=&dsform out=tempform (keep =_name_);
var c1--no;
run;
%mend;
They are diferent.
Ksharp
I noticed a problem.
%macro makeVarMap(dsact);
proc transpose data=&dsform out=tempform (keep =_name_);
var c1--no;
run;
%mend;
They are diferent.
Ksharp
Ksharp,
Thank u very much.I made a silly mistake.
Please give credit by clicking "correct answer", it is the least you can do to acknowledge the time and effort people spend helping you.
Chris,
I know I should acknowledge those who have given help.
I put on a snapshot here to show that there's no correct answer button here.
the 3 clicks below translating into english is "diversity,like, reply"
Good on you for trying.
That's odd, you should also have a yellow star and a green one if you are logged in.
"Diversity" is "Branch" in the english version.
Chris,
Thanks for your reminding.I'm so appreciated with other's patient help and always bearing in mind to click on those "correct answer" if have.
I am logging on, maybe it's due to my location?
It happend some times.
And now the correct answer appears.
Confused.
Dawn.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.