hi .. another idea ...
data have;
input (ABC F1 F2 FDG)($);
cards;
ID Name Sex Country
1 ABC M IND
2 BCD F USA
3 CDE M GER
4 DGE M UK
;
filename nosee dummy;
data _null_;
file nosee;
set have (obs=1);
put (_all_) (=) @;
call symputx('rename',_file_);
run;
data have;
set have (firstobs=2 rename=(&rename));
run;
Wow! That is mighty clever.
PG
hi ... among the many things I have learned from Howard Schreier is neat stuff you can do with _FILE_ ...
http://www.listserv.uga.edu/cgi-bin/wa?A2=ind0811b&L=sas-l&P=23589
Hi Mike,
Thank you! I tried to help this OP to find a better solution: https://communities.sas.com/thread/34279
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.