CHANGE old-name-1 =new-name-1 < .
. . old-name-n =new-name-n >
;
If you want to rename a member or members of the PDS,
use the CHANGE statement. Specify the old name on the left side of
the equal sign, and specify the new name on the right. For example,
the following statements change the name of member TESTPGM to PRODPGM:
filename loadlib 'my.pgm.lib ';
proc pds ddname=loadlib;
change testpgm=prodpgm;
run;
If multiple members
have names that begin with the same sequence of characters and you
want to change all of the names so that they begin with a different
sequence, use a colon (:) after
old-name and
new-name.
Here is an example:
change exam:=test:;
All of the members whose
names began with the characters EXAM will subsequently have names
beginning with the characters TEST.
Note: If changing the name of a
member would duplicate the name of an existing member, then the member
is not renamed and a note is written to the SAS log.
It is not necessary
for the lengths of the character sequences that precede the colon
to match. For example, the following statement is valid:
change am:=morn:;
However, if a new name
is too long, then a note is written to the SAS log and no change is
made.