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
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!
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.