02.05.2013 Views

SAS(R) 9.1.3 Companion for z/OS

SAS(R) 9.1.3 Companion for z/OS

SAS(R) 9.1.3 Companion for z/OS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Procedures under z/<strong>OS</strong> PDS Procedure 323<br />

REFRESH | NOREFRESH<br />

specifies whether to update the directory in<strong>for</strong>mation of the file that is being<br />

processed after each operation. The default, REFRESH, updates the directory<br />

in<strong>for</strong>mation after each operation. Unless the operations that are being per<strong>for</strong>med<br />

by PROC PDS are dependent on each other, specify NOREFRESH <strong>for</strong> better<br />

per<strong>for</strong>mance.<br />

STRICT<br />

causes error messages to be generated and sets the return code to 8 if no members<br />

match the selection criteria. The default behavior is <strong>for</strong> note messages to be<br />

generated and <strong>for</strong> the return code to be set to 0 if no members match the selection<br />

criteria.<br />

DELETE Statement<br />

DELETE member-1 ;<br />

If you want to delete a member or members from the PDS, specify the member names<br />

in a DELETE statement.<br />

When a specification in the DELETE statement is followed by a colon (:), all<br />

members whose names begin with the characters preceding the colon are deleted. For<br />

example, when the following statement is executed, PROC PDS deletes all members<br />

whose names begin with the characters PRGM:<br />

delete prgm:;<br />

CHANGE Statement<br />

CHANGE old-name-1 =new-name-1 ;<br />

If you want to rename a member or members of the PDS, use the CHANGE statement.<br />

Specify the old name on the left side of the equal sign, and specify the new name on the<br />

right. For example, the following statements change the name of member TESTPGM to<br />

PRODPGM:<br />

filename loadlib ’my.pgm.lib ’;<br />

proc pds ddname=loadlib;<br />

change testpgm=prodpgm;<br />

run;<br />

If multiple members have names that begin with the same sequence of characters<br />

and you want to change all of the names so that they begin with a different sequence,<br />

use a colon (:) after old-name and new-name. Here is an example:<br />

change exam:=test:;<br />

All of the members whose names began with the characters EXAM will subsequently<br />

have names beginning with the characters TEST.<br />

Note: If changing the name of a member would make the name the same as that of<br />

an existing member, then the member is not renamed and a note is written to the <strong>SAS</strong><br />

log. R<br />

It is not necessary <strong>for</strong> the lengths of the character sequences that precede the colon<br />

to match. For example, the following statement is valid:<br />

change am:=morn:;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!