What i want to do is get a value from a variable in multiple pdb's.
code:
--
libname in0 '/aaa/bbb/ccc' ;
data temp0;
set
in0.z
in0.y
in0.x
in0.w
in0.v;
keep mmm;
run;
proc print data=temp0 (obs=5);
run;
--
so i want to see the value of mmm from z,y,x,w,v. Im trying to do this as efficently as possible. Any pointers on how to do with without multiple libname statements? thank you.
Do you mean:
libname in0 '/aaa/bbb/ccc' ;
data temp0;
set
in0.z(obs=1)
in0.y(obs=1)
in0.x(obs=1)
in0.w(obs=1)
in0.v(obs=1)
;
keep mmm;
run;
proc print data=temp0 (obs=5);
run;
Do you mean:
libname in0 '/aaa/bbb/ccc' ;
data temp0;
set
in0.z(obs=1)
in0.y(obs=1)
in0.x(obs=1)
in0.w(obs=1)
in0.v(obs=1)
;
keep mmm;
run;
proc print data=temp0 (obs=5);
run;
Why yes...yes I do.
Thanks so much!
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.