%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.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.