DATA Step, Macro, Functions and more

nolist in PROC DATASETS?

Accepted Solution Solved
Reply
Super Contributor
Posts: 297
Accepted Solution

nolist in PROC DATASETS?

Hi, all:

 

I have the following codes, what is used for nolist?  Does this PROC DATASETS assign lib to work library?  Does this also delete dupicates?  Please help.

Thanks.

 

Y

 

proc datasets lib=work nolist; delete trash dups; quit; run;


Accepted Solutions
Solution
‎04-21-2016 02:06 PM
Super User
Super User
Posts: 7,401

Re: nolist in PROC DATASETS?

You would be best off reading the manual, it has a very descriptive passage on proc datasets:

http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473443.htm

 

As for your code, lib parameter sets the working library for the datasets operation, nolist supresses output, delete command removes datasets named trash and dups which reside in the libarary work.

proc datasets lib=work nolist; 
  delete trash dups; 
quit; 

 

 

View solution in original post


All Replies
Solution
‎04-21-2016 02:06 PM
Super User
Super User
Posts: 7,401

Re: nolist in PROC DATASETS?

You would be best off reading the manual, it has a very descriptive passage on proc datasets:

http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473443.htm

 

As for your code, lib parameter sets the working library for the datasets operation, nolist supresses output, delete command removes datasets named trash and dups which reside in the libarary work.

proc datasets lib=work nolist; 
  delete trash dups; 
quit; 

 

 

Super Contributor
Posts: 297

Re: nolist in PROC DATASETS?

The PROC DATASETS statement lists the SAS files in the procedure input library unless the NOLIST option is specified. The NOLIST option prevents the creation of the procedure results that go to the log.

 

Does it mean no result will be shown in the log window? Thanks.

Super User
Posts: 17,819

Re: nolist in PROC DATASETS?


ybz12003 wrote:

The PROC DATASETS statement lists the SAS files in the procedure input library unless the NOLIST option is specified. The NOLIST option prevents the creation of the procedure results that go to the log.

 

Does it mean no result will be shown in the log window? Thanks.


 

That's exactly what it says. No results go to the log. You're better off testing these things, rather than asking them as questions. 

Super User
Posts: 17,819

Re: nolist in PROC DATASETS?

Definitely a RTM question...

 

 

LIBRARY=libref
names the library that the procedure processes. This library is the procedure input/output library.

 

 

 

 

NOLIST
suppresses the printing of the directory of the SAS files in the SAS log.

http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a000247753.htm

 

There's a good paper on proc datasets via Mike Raithel

https://sasglobalforum2016.lanyonevents.com/connect/sessionDetail.ww?SESSION_ID=3440

 

See Presentation download on right hand side or search at lexjansen.com

 

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 1711 views
  • 1 like
  • 3 in conversation