Hi David, I've read enough of your highly informative posts to know you know about the need to rename each individually if using DFDSS but wrote my response for posterity sake, in case somebody else came along and misread something into thinking they could do a mass change with wildcards. More specifically, I glossed over your comment about the ISPF tricks - to my detriment.
Thanks, Rex -----Original Message----- From: IBM Mainframe Discussion List <[email protected]> On Behalf Of David Spiegel Sent: Friday, October 21, 2022 11:31 AM To: [email protected] Subject: Re: [EXTERNAL] Re: Iebcopy rename hlq?? Hi Rex, Yeah, I know. That's why I do each one individually with my ISPF Editing tricks. Regards, David On 2022-10-21 09:38, Pommier, Rex wrote: > Hi David, > > I think the issue is that James wants to move these datasets and > prepend a new HLQ onto each of them without the need to rename each > dataset individually. Unfortunately DFDSS doesn't provide that as an > option. I've occasionally wished for the same function, something > akin to > > COPY DS(INC(HLQ.**)) RENUNC(**,NEWHLQ.**) > > But alas, DFDSS limits me to renaming each dataset individually if I'm > changing the number of qualifiers. > > Rex > > -----Original Message----- > From: IBM Mainframe Discussion List <[email protected]> On > Behalf Of David Spiegel > Sent: Thursday, October 20, 2022 7:50 PM > To: [email protected] > Subject: [EXTERNAL] Re: Iebcopy rename hlq?? > > 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 > > ---------------------------------------------------------------------- > The information contained in this message is confidential, protected from > disclosure and may be legally privileged. If the reader of this message is > not the intended recipient or an employee or agent responsible for delivering > this message to the intended recipient, you are hereby notified that any > disclosure, distribution, copying, or any action taken or action omitted in > reliance on it, is strictly prohibited and may be unlawful. If you have > received this communication in error, please notify us immediately by > replying to this message and destroy the material in its entirety, whether in > electronic or hard copy format. Thank you. > > > ---------------------------------------------------------------------- > 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 ---------------------------------------------------------------------- The information contained in this message is confidential, protected from disclosure and may be legally privileged. If the reader of this message is not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any disclosure, distribution, copying, or any action taken or action omitted in reliance on it, is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by replying to this message and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
