Where is JOL available? Thank you.
Regards,
Herman Stocker
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf
Of Clement Clarke
Sent: Thursday, April 30, 2009 8:31 AM
To: [email protected]
Subject: Re: replacement for proc pds rename function...
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
- --
The sender believes that this E-mail and any attachments were free of any
virus, worm, Trojan horse, and/or malicious code when sent. This message and
its attachments could have been infected during transmission. By reading the
message and opening any attachments, the recipient accepts full
responsibility for taking protective and remedial action about viruses and
other defects. The sender's employer is not liable for any loss or damage
arising in any way from this message or its attachments.
----------------------------------------------------------------------
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