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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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