BookmarkSubscribeRSS Feed
R_Win
Calcite | Level 5
In a work library i am having 10 datasets how can i print them all by using proc print at once(in a sequential order);
5 REPLIES 5
LinusH
Tourmaline | Level 20
All the information you need is in the replies to your previous post.
If you think it's too complicated, I guess you have to write PROC PRINT DATA=xxx,RUN; ten times...

/Linus
Data never sleeps
Flip
Fluorite | Level 6
data _null_;
set sashelp.vtable (where = ( libname = "WORK"));
call execute("proc print data = work." || memname || "; run;");
run;

By the way, in the days when I did a lot of hiring, this was my favorite interview question.

Message was edited by: Flip Yea, I left out the =.

Message was edited by: Flip
R_Win
Calcite | Level 5
Hi i have checked this but it is not working .if u have any other answer pl send it
LinusH
Tourmaline | Level 20
What is not working? Attach a LOG so that we can help you.

/LInus
Data never sleeps
R_Win
Calcite | Level 5
data _null_;
set sashelp.vtable;
where libname = "WORK";
call execute("proc print data = work." || memname || "; run;");
run;


ya it worked thanks

sas-innovate-2024.png

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.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 5 replies
  • 621 views
  • 0 likes
  • 3 in conversation