Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

HRECOVER thru JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
V S Amarendra Reddy

Active User


Joined: 13 Sep 2006
Posts: 189
Location: INDIA

PostPosted: Wed Sep 02, 2015 7:45 pm    Post subject: HRECOVER thru JCL
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 User


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

PostPosted: Wed Sep 02, 2015 8:46 pm    Post subject:
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: 189
Location: INDIA

PostPosted: Wed Sep 02, 2015 8:56 pm    Post subject:
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

Senior Member


Joined: 21 Sep 2010
Posts: 1609
Location: NY,USA

PostPosted: Wed Sep 02, 2015 9:02 pm    Post subject:
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: 1712
Location: UK

PostPosted: Wed Sep 02, 2015 9:03 pm    Post subject:
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: 189
Location: INDIA

PostPosted: Wed Sep 02, 2015 9:11 pm    Post subject:
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 User


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

PostPosted: Wed Sep 02, 2015 9:13 pm    Post subject:
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: 189
Location: INDIA

PostPosted: Wed Sep 02, 2015 9:16 pm    Post subject:
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

Active Member


Joined: 08 May 2006
Posts: 988
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Thu Sep 03, 2015 1:22 pm    Post subject:
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 User


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

PostPosted: Thu Sep 03, 2015 4:46 pm    Post subject:
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

Active Member


Joined: 08 May 2006
Posts: 988
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Thu Sep 03, 2015 5:11 pm    Post subject:
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 User


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

PostPosted: Thu Sep 03, 2015 8:02 pm    Post subject:
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

Senior Member


Joined: 21 Sep 2010
Posts: 1609
Location: NY,USA

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

Steve, See if this similar post helps to reduce the WAIT. icon_smile.gif
http://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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts hrecover with failed reason code = 0028 dick scherrer All Other Mainframe Topics 8 Wed Oct 14, 2009 7:12 pm
No new posts Where we use HRECOVER command? Rajesh S TSO/ISPF 3 Sat Aug 25, 2007 10:16 am
No new posts Recover a particular member in a PDS ... cpuhawg All Other Mainframe Topics 5 Fri Nov 24, 2006 8:19 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us