IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

HRECOVER thru JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
V S Amarendra Reddy

Active User


Joined: 13 Sep 2006
Posts: 216
Location: USA

PostPosted: Wed Sep 02, 2015 7:45 pm
Reply with quote

Hi,

I am trying to recover a dataset thru JCL below. The thing is I am getting the ARC messages are popped on to my terminal like the below. Can someone please tell me which DD name should I add to the JCL so that the messages would print to a dataset or SYSOUT?

Code:

//STEP2    EXEC PGM=IKJEFT01,COND=(0,NE)                   
//SYSTSPRT DD SYSOUT=*                                     
//SYSPRINT DD SYSOUT=*                                     
//SYSTSIN  DD DSN=Dataset,DISP=SHR


ARC messages
Code:

ARC1001I GIO.XO1.A0006868.B006.T1.G0507V00.PK130919 RECOVER FAILED, RC=0028,   
ARC1001I (CONT.) REAS=0000                                                     
ARC1128I BACKUP/DUMP COPY DOES NOT EXIST                                       
*** 


I have tried searching for the solution in Google alot and in here too. But there was no solution I could find for this.

Regards
Amar
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Wed Sep 02, 2015 8:46 pm
Reply with quote

Quote:
Code:
ARC1128I BACKUP/DUMP COPY DOES NOT EXIST
From the initial post, it's not clear if the data set is the data set specified by the ddata set name parameter in the JCL, ir if the data set specified a sequential data set containing a TSO HRECOVER command. Regardless, if the data set is not in the HSM catalog it cannot be recovered. Period. End of story.
Back to top
View user's profile Send private message
V S Amarendra Reddy

Active User


Joined: 13 Sep 2006
Posts: 216
Location: USA

PostPosted: Wed Sep 02, 2015 8:56 pm
Reply with quote

Sorry for the confusion there. I have removed the dataset name in the JCL but forgot to remove it from the ARC messages. Those messages are indeed coming from HRECOVER command ran in the JCL.


If I may add, the HRECOVER command was coded within the dataset listed in SYSTSIN DD.

Nevertheless, I am not really bothered about if it exists on tape or not. My only question is how can we capture the ARC messages into a SYSOUT or a dataset instead of seeing them on terminal.



Regards
Amar
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3053
Location: NYC,USA

PostPosted: Wed Sep 02, 2015 9:02 pm
Reply with quote

I think SYSTSPRT should give the desired output.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Wed Sep 02, 2015 9:03 pm
Reply with quote

If it is a batch job it should not know about a terminal. Are you sure it is writing to a terminal or are they messages written to the console and/or to the output spool data for the job?
Back to top
View user's profile Send private message
V S Amarendra Reddy

Active User


Joined: 13 Sep 2006
Posts: 216
Location: USA

PostPosted: Wed Sep 02, 2015 9:11 pm
Reply with quote

They are being sent similar to the ones we get for maxcc=0 when a job finishes which is controlled by NOTIFY parameter on the jobcard.

So after I submit that step, the job completes successfully but the ARC messages are coming on to terminal like notifications.

SYSTSPRT's output is here. Here I have removed the original dataset names and put them as dataset1, dataset2. But this is what is shown in SYSTSPRT in SPOOL.

Code:

ACF0C038 ACF2 LOGONID ATTRIBUTES HAVE REPLACED DEFAULT USER ATTRIBUTES         
READY                                                                           
HRECOVER 'dataset1' NEWNAME('dataset2')
ARC1007I RECOVER REQUEST 00015749 SENT TO DFSMSHSM                             
READY                                                                           
END             
                                                               
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Wed Sep 02, 2015 9:13 pm
Reply with quote

I presume the ARC messages are in the data set specified by the SYSTSPRT DD statement. If you want the messages in a data set, specify the data set in the SYSTSPRT DD statement. This is something I will do when I want a program to analyze the messages. For example -
Code:
//A       EXEC PGM=IEFBR14
//TSOOUT   DD  DISP=(MOD,DELETE),UNIT=SYSALLDA,SPACE=(TRK,0),
//             DSN=&SYSUID..HSMMSGS
//B       EXEC PGM=IKJEF01
//SYSTSPRT DD  DISP=(,CATLG),UNIT=SYSDA,SPACE=(TRK,(1,1)),
//             DCB=(RECFM=FB,LRECL=120,DSORG=PS),DSN=*.A.TSOOUT
//SYSTSIN  DD  *
 HRECOVER xxx
Back to top
View user's profile Send private message
V S Amarendra Reddy

Active User


Joined: 13 Sep 2006
Posts: 216
Location: USA

PostPosted: Wed Sep 02, 2015 9:16 pm
Reply with quote

Hi Steve,

Thanks for the response, I am not talking about the ARC messages sent by the SYSTSPRT DD.

I am talking about the ones from my original post, the below ones. you've a method to capture these ones?

Removed the original dataset name again here

Code:

ARC1001I dataset RECOVER FAILED, RC=0028,   
ARC1001I (CONT.) REAS=0000                                                     
ARC1128I BACKUP/DUMP COPY DOES NOT EXIST                                       
***


Regards
Amar
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Thu Sep 03, 2015 1:22 pm
Reply with quote

Quote:
If I may add, the HRECOVER command was coded within the dataset listed in SYSTSIN DD.



Is the HRECOVER command in a REXX script? If so, the REXX can capture the messages using OUTTRAP and write them to a dataset.

Garry.
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Thu Sep 03, 2015 4:46 pm
Reply with quote

Gary - the messages are being sent asynchronously from HSM. They cannot be "trapped" as they are not coming from the HRECOVER command. In fact, most likely the command has completed when the TSO session receives the messages.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Thu Sep 03, 2015 5:11 pm
Reply with quote

Steve,

I wrote a small REXX script to issue the HRECOVER for a non-existent file and trapped the messages using OUTTRAP.

GaRRy
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Thu Sep 03, 2015 8:02 pm
Reply with quote

I got to thinking HRECOVER ... WAIT, but I didn't know how the messages would be sent, so I decided not to mention my ignorance. In any event, I have no way to test any of these ideas. The bad news about HRECOVER ... WAIT is you have no idea how long the wait will be.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3053
Location: NYC,USA

PostPosted: Thu Sep 03, 2015 8:11 pm
Reply with quote

Steve, See if this similar post helps to reduce the WAIT. icon_smile.gif
www.ibmmainframes.com/about23896.html
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts hrecover with failed reason code = 0028 All Other Mainframe Topics 8
No new posts Where we use HRECOVER command? TSO/ISPF 3
No new posts Recover a particular member in a PDS ... All Other Mainframe Topics 5
Search our Forums:

Back to Top