proc catalog catalog=misc entrytype=help; copy out=drink; select coffee tea; del juices; /* INCORRECT!!! */ exchange glass=plastic; run; change calstats=nutri; run;
(ENTRYTYPE=etype) in parentheses immediately following an entry name overrides ENTRYTYPE= in that same statement.
To process multiple entry types in a single PROC CATALOG step, use ENTRYTYPE= in a subordinate statement, not in the PROC CATALOG statement.
delete a b (et=format) c / et=help;
For the CHANGE and EXCHANGE statements, specify (ENTRYTYPE=) in parentheses only once for each pair of names following the second name in the pair as shown in the following example:
change old1=new1 (et=log) old1=new2 (et=help);
LIBNAME first 'path-name1'; LIBNAME second 'path-name2'; /* create concat.x */ LIBNAME concat (first second); /* fails rule #1 */ proc catalog c=concat.x; copy out=first.x new; run; quit; /* fails rule #2 */ proc catalog c=first.x; copy out=concat.x new; run; quit;