Hi James,
You can use DFSMSdss to COPY with RENAME.
Here is an example:
//STEP001 EXEC PGM=ADRDSSU ,PARM='TYPRUN=NORUN'
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
COPY DS( -
INCL( -
HLQ.X -
) -
) -
RENUNC( -
(HLQ.X -
NEWHLQ.HLQ.X) -
) -
CAT -
STORCLAS(STANDARD) -
OPT(4) -
SHR -
SPHERE -
TOL(ENQF)
- You can only COPY 255 Datasets in one step.
I have a series of ISPF Edit tricks to generate the commands and
interleave them.
If you're interested, please PM me at [email protected]
Regards,
Davis
On 2022-10-20 18:04, rpinion865 wrote:
Do you have FDR?
Sent from Proton Mail mobile
-------- Original Message --------
On Oct 20, 2022, 5:51 PM, James Cradesh wrote:
What’s the solution to copying (actually moving)/ renaming hundreds of sms
managed datasets? I’ve looked for rexx execs to do this but I’ve not come
across anything. I’ve tried dfdss but changing the hlq of sms datasets doesn’t
seem to work for me since I want to add a hlq not actually rename the hlq For
example sys2 to newhlq.sys2. Perhaps a two step approach? Any suggestions?
---------------------------------------------------------------------- For
IBM-MAIN subscribe / signoff / archive access instructions, send email to
[email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN