Yes, the only problem with IEHPROGM is that you have to use the Vol
keyword, and know where the data set is.
You can't use the Catalog to find the file.
In Jol, the syntax of the Rename instruction is:
Rename old-dsname new-dsname [ALIAS]
[VOL volume UNIT unit] ;
Examples
1. Rename 'sys1.proclib(TestProg)' (newprog);
2. Rename 'Test.data.set1' 'Old.Test.data';
3. Rename 'Dept1.*.asm' Dept2.*.asm';
Clem Clarke
Chris Mason wrote:
Don and responding contributors
Maybe I'm being grossly old-fashioned - and I am certainly grossly out-of-date
regarding MVS Utilities - but I believe when I wanted to create a batch job[1]
in order to rename the member of a partitioned data set, procedure members
in procedure libraries included, I used the entirely free - sorry, at no extra
cost from IBM - utility IEHPROGM. The appropriate example - found quickly by
searching for "rename" on the Contents web page of the z/OS DFSMSdfp
Utilities (SC26-7414-04) manual (to be found in the z/OS V1R10 DFSMS
bookshelf):
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT2U130
Specifically "14.5.7 Example 7: Rename a Partitioned Data Set Member".
<quote>
//REN JOB ...
//STEP1 EXEC PGM=IEHPROGM
//SYSPRINT DD SYSOUT=A
//DD1 DD VOL=SER=222222,DISP=OLD,UNIT=disk
//SYSIN DD *
RENAME
VOL=disk=222222,DSNAME=DATASET,NEWNAME=BC,MEMBER=ABC
/*
</quote>
... (delete text)
Chris Mason
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html