View previous topic :: View next topic
|
Author |
Message |
V S Amarendra Reddy
Active User
Joined: 13 Sep 2006 Posts: 216 Location: USA
|
|
|
|
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 |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
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 |
|
|
V S Amarendra Reddy
Active User
Joined: 13 Sep 2006 Posts: 216 Location: USA
|
|
|
|
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 |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3053 Location: NYC,USA
|
|
|
|
I think SYSTSPRT should give the desired output. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
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 |
|
|
V S Amarendra Reddy
Active User
Joined: 13 Sep 2006 Posts: 216 Location: USA
|
|
|
|
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 |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
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 |
|
|
V S Amarendra Reddy
Active User
Joined: 13 Sep 2006 Posts: 216 Location: USA
|
|
|
|
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 |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
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 |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
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 |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
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 |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
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 |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3053 Location: NYC,USA
|
|
Back to top |
|
|
|