esmi -

I would first say use the H HRECOV SYNTAX to get a feel for the HRECOV command.

Next, you need to understand how TSO works with continuatino lines.  The 
statement must end
in either a + or - sign in TSO.  

Here are the results.


What I coded:
  PROF MSGID WTPMSG                                     
  HRECOV   'TSO.LK41591.PDF.ISPCLIB.BKUP'  NEWNAME+     
('TSO.LK41591.PDF.ISPCLIB.BKUPB')   
 

What TSO builds:                   
  HRECOV   'TSO.LK41591.PDF.ISPCLIB.BKUP'  
NEWNAME('TSO.LK41591.PDF.ISPCLIB.BKUPB')          
ARC1007I RECOVER REQUEST 00001155 SENT TO DFSMSHSM 


In my sytax for the HRECOV command I push the PLUS SIGN up against the NEWNAME 
parm.  then
on the second line I must start in column 1 with the remaining parms for 
NEWNAME.  This produces the line that follows in the output of my TSO step.

Personally I prefere to move the Newname to the second line and then I do not 
worry about the spacing of the parms.
    HRECOV 'currentname'   +
        NEWNAME('newname')

The TSO CLIST command book is fairly good at describing continuation process in 
batch TSO.

Lizette

>   
>  I am attempting to perform a HRECOVER command via batch job (auditors 
> requirements).  I am also trying to rename the recovered dsn.  I am 
> encountering a syntax error.  Can anybody please advise me as to how I could 
> correct it.  Below is my jcl and the error message:
>  //STEP001 EXEC PGM=IKJEFT01                                             
>//SYSPRINT DD SYSOUT=*                                                  
>//SYSTSPRT DD SYSOUT=*                                                  
>//SYSTSIN  DD *                                                         
>  HRECOVER '$WTQ$35.BACKUP.RPMSTAD.TOT.G2025V00' NEWNAME X  
>     ('$P160020.POSTAT.TEST')                                               
>/*                                                                      
>  I put the "X" in col 72 to act as a continuation.
>
>  Below is the error message:
>   
>  READY                                                                  
>  HRECOVER 'WTQ$35.BACKUP.RPMSTAD.TOT.G2025V00' NEWNAME         
> MISSING NEW DATA SET NAME                                              
>READY                                                                  
>   ('RACF.POSTAT.TEST')                                              
>INVALID COMMAND NAME SYNTAX                                            
>READY                                                                  
>END                                                 
>

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

Reply via email to