CATALOG Procedure: UNIX

Manages entries in SAS catalogs.
UNIX specifics: FILE= option in the CONTENTS statement
See: CATALOG Procedure in Base SAS Procedures Guide

Syntax

PROC CATALOG CATALOG=<libref.> catalog <ENTRYTYPE=etype> <KILL> ;
CONTENTS <OUT=SAS-data-set> <FILE=fileref> ;

Optional Argument

fileref
names a file specification that is specific to the UNIX operating environment.

Details

Note: This version is a simplified version of the CATALOG procedure syntax. For the complete syntax and its explanation, see CATALOG Procedure in Base SAS Procedures Guide.
The FILE= option in the CONTENTS statement of the CATALOG procedure accepts a fileref. If the name specified does not correspond to a fileref, a file with that name and an extension of .lst is created in the current directory. For example, if myfile is not a fileref, the following code creates the file myfile.lst in your current directory:
proc catalog catalog=sasuser.profile;
   contents file=myfile;
run;
SAS writes the following output to the Log:
NOTE: 6 entries have been written to the output file /users/userid/MYFILE.lst.
Note: The filename that is created is always stored in lowercase, even if you specified it in uppercase. In the SAS log, however, the filename is listed in uppercase.