Question-: Which of the proc you can use to check the contents of the SAS Library and what all the information you check with that?
Answer: To check the contents of a particular SAS library we can use the “CONTENTS� proc, which can give following information. - What all are the contents in the library (all the SAS Data files) - Descriptor information for each SAS Data set in that library.
Question-: Using CONTENTS proc, which variable you can use to list all the files in a SAS library?
Answer: We can use ._ALL_ to list all the files in a library which is represented by libref.
Question-: What is the use of NODS in the CONTENTS proc?
Answer: Using the NODS you can suppress the detailed information about each file when you use ._ALL_
Question-: How does DATASETS proc is different than CONTENTS proc?
Answer: Yes, this is true you can use DATASETS proc as well to view the contents of the SAS library or a SAS Data sets. But DATASETS proc has additional data management capabilities like copying, deleting and modifying SAS files. And to end the DATASETS proc you would be using QUIT statement.