Manages entries in SAS catalogs.
UNIX specifics: |
FILE= option in the CONTENTS statement
|
See: |
CATALOG Procedure in
Base SAS Procedures Guide
|
PROC CATALOG CATALOG=<libref.>catalog
<ENTRYTYPE=etype> <KILL>;
|
CONTENTS
<OUT=SAS-data-set> <FILE=fileref>;
|
|
Note: This version is a simplified version of the CATALOG
procedure syntax. For the complete syntax and its explanation, see the CATALOG
procedure in the
Base SAS Procedures Guide. ![[cautionend]](../../../../common/61991/HTML/default/images/cautend.gif)
-
fileref
-
names a file specification that is specific
to the UNIX operating environment.
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. ![[cautionend]](../../../../common/61991/HTML/default/images/cautend.gif)
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.