Gadi wrote:

>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?

Many things in ISPF can be done in ISPF. Like this:

//SPFPDF   EXEC PGM=IKJEFT01       
//SYSPRINT DD  SYSOUT=*            
//SYSTERM  DD  SYSOUT=*            
//SYSTSPRT DD  SYSOUT=*            
//SYSTSIN  DD  *                   
  PROF NOPREFIX                    
  RENAME 'SYS1.RAT' 'SYSV.RODENT'
  DELETE 'GADI.PEST'
  HMIG 'SYS1.LAME.BREAKER'
  HRECALL 'SYS1.ELARDUS'
  .. etc .. 

Just be careful with that PROFILE and quotes...

Groete / Greetings
Elardus Engelbrecht

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to