You could use HSM. Do a hbackds and then a hrecover with newname. If your SMS routines are set up properly the SYSV (rename) would go into the catalog you want.
-------------------------------------------- On Wed, 8/27/14, גדי בן אבי <[email protected]> wrote: Subject: Rename dataset and recatalog To: [email protected] Date: Wednesday, August 27, 2014, 3:35 AM Hi, How do I rename a dataset in batch if it will need to be cataloged in a different catalog? For example, I would like to rename SYS1.FOOBAR to SYSV.FOOBAR. Datasets with an HLQ of SYSV are cataloged in a different catalog the datasets with an HLQ of SYS1. This is very simple in ISPF, but how can it be done in batch? Thanks Gadi ________________________________ לשימת לבך, בהתאם לנהלי חברת מלם מערכות בע"מ ו/או כל חברת בת ו/או חברה קשורה שלה (להלן : "החברה") וזכויות החתימה בהן, כל הצעה, התחייבות או מצג מטעם החברה, מחייבים מסמך נפרד וחתום על ידי מורשי החתימה של החברה, הנושא את לוגו החברה או שמה המודפס ובצירוף חותמת החברה. בהעדר מסמך כאמור (לרבות מסמך סרוק) המצורף להודעת דואר אלקטרוני זאת, אין לראות באמור בהודעה אלא משום טיוטה לדיון, ואין להסתמך עליה לביצוע פעולה עסקית או משפטית כלשהי. Please note that in accordance with Malam and/or its subsidiaries (hereinafter : "Malam") regulations and signatory rights, no offer, agreement, concession or representation is binding on the Malam, unless accompanied by a duly signed separate document (or a scanned version thereof), affixed with the Malam seal. ---------------------------------------------------------------------- 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
