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 2025: Call for Content

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!

Submit your idea!

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
  • 745 views
  • 0 likes
  • 3 in conversation