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;
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;
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;
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.
@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.
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
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.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.