Multiple choice technology

Which statement prints a summary of all the files stored in the libeary Sales?

  1. Proc Contents data=Sales._all_nods; run;

  2. Proc Contents data=Sales all.nods; run;

  3. Proc datasets; Contents data= Sales._all_nods; quit;

  4. Both a & c

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Both Proc Contents with the data=Sales.all nodetails option AND Proc datasets with Contents data=Sales.all nodetails will print summaries of all files in the Sales library. Proc Contents can run standalone with the all keyword and nodetails option to suppress detailed attribute information. Proc Datasets is a utility procedure that can manage multiple files in a library and includes Contents as a sub-statement. Both syntaxes are valid SAS programming approaches for library-level reporting.