Help using Base SAS procedures

Printing 10 Datasets in a library by using proc print

Reply
Regular Contributor
Posts: 229

Printing 10 Datasets in a library by using proc print

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);
Super User
Posts: 5,257

Re: Printing 10 Datasets in a library by using proc print

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
Super Contributor
Posts: 359

Re: Printing 10 Datasets in a library by using proc print

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
Regular Contributor
Posts: 229

Re: Printing 10 Datasets in a library by using proc print

Hi i have checked this but it is not working .if u have any other answer pl send it
Super User
Posts: 5,257

Re: Printing 10 Datasets in a library by using proc print

What is not working? Attach a LOG so that we can help you.

/LInus
Data never sleeps
Regular Contributor
Posts: 229

Re: Printing 10 Datasets in a library by using proc print

data _null_;
set sashelp.vtable;
where libname = "WORK";
call execute("proc print data = work." || memname || "; run;");
run;


ya it worked thanks
Ask a Question
Discussion stats
  • 5 replies
  • 98 views
  • 0 likes
  • 3 in conversation