Restore VSAM and PDS's with ADRDSSU



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Restore VSAM and PDS's with ADRDSSU

Postby ballj35 » Wed Jan 26, 2011 4:17 pm

I am attempting to RESTORE a VSAM File and PDS from tape that was created using ADRDSSU.
Information from the DUMP job.

BACKUP INFORMATION

//STEP2000 EXEC PGM=ADRDSSU,REGION=0M
//SYSPRINT DD DSN=QA.DM.TEST.DMBKRSTS.TEST,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(5,1),RLSE),
// DCB=(RECFM=FB,LRECL=133,BLKSIZE=133)
//SYSOUT DD *
//QAFILES DD DSN=ZOS111.DM.QA.BACKUP.FILES,
// DISP=(OLD,KEEP),
// UNIT=590,LABEL=(1,SL),
// VOL=(,RETAIN,SER=QADM01)
//DMPDS DD DSN=ZOS111.DM.QA.BACKUP.DATAMINE,
// DISP=(OLD,KEEP),
// UNIT=590,LABEL=(2,SL),
// VOL=(,RETAIN,SER=QADM01)
//*
//OUTQA DD DSN=RESTORE.QA.DM.TEST.PERSNL.DATA1,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(CYL,(10,1,50))
//*
//OUTDM DD DSN=RESTORE.DATAMINE.V71CR1.INSTALL.SOURCE,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(CYL,(10,1,50))
//*
//SYSIN DD *
DUMP DS(INCLUDE(QA.DM.TEST.**)) -
OPT(4) -
TOL(ENQF) WAIT(0,0) -
ODD(QAFILES)
ADR101I (R/I)-RI01 (01), TASKID 001 HAS BE
DUMP DS(INCLUDE(DATAMINE.V71*.**)) -
OPT(4) -
TOL(ENQF) WAIT(0,0) -
ODD(DMPDS)
*******************************
PROCESSING COMPLETED FOR CLUSTER QA.DM.TEST.PERSNL.DATA1, 10 RECORD(S) PROC
CLUSTER NAME QA.DM.TEST.PERSNL.DATA1
CATALOG NAME CATALOG.Z111.MASTER
COMPONENT NAME QA.DM.TEST.PERSNL.DATA1.DAT
COMPONENT NAME QA.DM.TEST.PERSNL.DATA1.IDX

ADR454I (002)-DTDSC(01), THE FOLLOWING DATA SETS WERE SUCCESSFULLY PROCESSED
DATAMINE.V71CR1.INSTALL.SOURCE
****************************************
RESTORE JOB INFORMATION

//STEP2000 EXEC PGM=ADRDSSU,REGION=0M
//SYSPRINT DD DSN=QA.DM.TEST.DMBKRSTS.TEST,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(5,1),RLSE),
// DCB=(RECFM=FB,LRECL=133,BLKSIZE=133)
//SYSOUT DD *
//QAFILES DD DSN=ZOS111.DM.QA.BACKUP.FILES,
// DISP=(OLD,KEEP),
// UNIT=590,LABEL=(1,SL),
// VOL=(,RETAIN,SER=QADM01)
//DMPDS DD DSN=ZOS111.DM.QA.BACKUP.DATAMINE,
// DISP=(OLD,KEEP),
// UNIT=590,LABEL=(2,SL),
// VOL=(,RETAIN,SER=QADM01)
//*
//OUTQA DD DSN=RESTORE.QA.DM.TEST.PERSNL.DATA1,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(CYL,(10,1,50))
//*
//*
//OUTDM DD DSN=RESTORE.DATAMINE.V71CR1.INSTALL.SOURCE,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(CYL,(10,1,50))
//*
//SYSIN DD *
ADR030I (SCH)-PRIME(01), DCB VALUES HAVE BEEN MODIFIED FOR SYSPRINT
RESTORE DATASET( -
INCLUDE(QA.DM.TEST.PERSNL.DATA1 ) ) -
INDDNAME(QAFILES) -
OUTDDNAME(OUTQA)
ADR101I (R/I)-RI01 (01), TASKID 001 HAS BEEN ASSIGNED TO COMMAND 'RES
RESTORE DATASET( -
INCLUDE(DATAMINE.V71CR1.INSTALL.SOURCE ) ) -
INDDNAME(DMPDS) -
OUTDDNAME(OUTDM)
THE INPUT DUMP DATA SET BEING PROCESSED IS IN LOGICAL DATA SET FORMAT AND WAS C
VERSION 1 RELEASE 11 MODIFICATION LEVEL 0 ON 2011.025 12:21:37
DATA SET QA.DM.TEST.PERSNL.DATA1 NOT PROCESSED, 18
NO DATA SETS WERE COPIED, DUMPED, OR RESTORED FROM ANY VOLUME
THE FOLLOWING DATA SETS WERE NOT PROCESSED FROM THE LOGICALLY FORMATTED DUMP TA
QA.DM.TEST.PERSNL.DATA1
2011.025 13:08:49 EXECUTION ENDS
2011.025 13:08:49 TASK COMPLETED WITH RETURN CODE 0008
RACF LOGGING OPTION IN EFFECT FOR THIS TASK
2011.025 13:08:49 EXECUTION BEGINS
THE INPUT DUMP DATA SET BEING PROCESSED IS IN LOGICAL DATA SET FORMAT AND WAS CR
VERSION 1 RELEASE 11 MODIFICATION LEVEL 0 ON 2011.025 12:21:50
DATA SET DATAMINE.V71CR1.INSTALL.SOURCE NOT PROCESSED, 18
NO DATA SETS WERE COPIED, DUMPED, OR RESTORED FROM ANY VOLUME
THE FOLLOWING DATA SETS WERE NOT PROCESSED FROM THE LOGICALLY FORMATTED DUMP TAP
DATAMINE.V71CR1.INSTALL.SOURCE
2011.025 13:08:49 EXECUTION ENDS
2011.025 13:08:49 TASK COMPLETED WITH RETURN CODE 0008
2011.025 13:08:49 DFSMSDSS PROCESSING COMPLETE. HIGHEST RETURN CODE IS 0008 FROM
TASK 001
TASK 002
*************************
Any direction would be great and
Thank You in advance.

Jerry
ballj35
 
Posts: 33
Joined: Mon Jan 10, 2011 10:58 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Restore VSAM and PDS's with ADRDSSU

 

Re: Restore VSAM and PDS's with ADRDSSU

Postby ballj35 » Wed Jan 26, 2011 4:27 pm

The Backup & Restore Jobs are attached for full detail.
I can really appreciate some help here, since I am unsure
of getting all components of the VSAM file in the outddname
from this tape. It has been written successfully, based on the
BACKUP job. Also getting the PDS DATAMINE.*, to ensure
I can get both types.
Thanx in advance.

Jerry
You do not have the required permissions to view the files attached to this post.
ballj35
 
Posts: 33
Joined: Mon Jan 10, 2011 10:58 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Restore VSAM and PDS's with ADRDSSU

Postby Robert Sample » Wed Jan 26, 2011 6:02 pm

You got error ADR380E, reason code 18, on both restores. Since you appear to have trouble finding error messages in the manual, here's what that means:
18
For physical data set processing: the REPLACE, RENAME, or RENAMEUNCONDITIONAL keywords were not specified for the movable non-VSAM data set, or REPLACE was not specified for a VSAM data set.

For logical data set processing, the REPLACE, REPLACEUNCONDITIONAL, RENAME, or RENAMEUNCONDITIONAL keywords were not specified for the data set.
To summarize: since you did not delete the data sets before doing the restore, you must (1) use the REPLACE option to overlay the existing data set, or (2) use RENAME to give the restored data set a different name. This is because the catalog does not support having two data sets with the same name at the same time.
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 222 times

Re: Restore VSAM and PDS's with ADRDSSU

Postby ballj35 » Wed Jan 26, 2011 6:29 pm

I have deleted the datasets. I have included the
RUNJCL from the job, such that someone can see they
were deleted in STEP100.
I will add the REPLACE statement, but the files
were removed with IEBGENER, this is why I am not
sure why I am getting this challenge.
Thanx.
You do not have the required permissions to view the files attached to this post.
ballj35
 
Posts: 33
Joined: Mon Jan 10, 2011 10:58 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Restore VSAM and PDS's with ADRDSSU

Postby ballj35 » Wed Jan 26, 2011 6:45 pm

Decided to also post the Backup Job Log from SDSF. The
output information is written in the other attachment
of Backup_Job_Information. In sequence the Restore_Job_Log
has it's output file in the attachment of Restore_Job_Information.
Thanx in advance.
You do not have the required permissions to view the files attached to this post.
ballj35
 
Posts: 33
Joined: Mon Jan 10, 2011 10:58 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Restore VSAM and PDS's with ADRDSSU

Postby Robert Sample » Wed Jan 26, 2011 6:52 pm

An ADRDSSU restore does not require you to allocate and catalog the data set in JCL -- and, in fact, you can get an ADR380E reason code 18 if you do so. ADRDSSU will handle the data set allocation and cataloging -- you should not have the data set in the JCL at all. Your JCL should resemble this (which is a known, working restore for me):
//STEP2    EXEC PGM=ADRDSSU,REGION=0M   ,PARM='TYPRUN=NORUN'
//SYSPRINT DD   SYSOUT=*
//BACKUP   DD   DISP=SHR,DSN=backup.data.set.G0873V00
//DISK01   DD   UNIT=SYSDA,DISP=SHR,VOL=SER=volser
//SYSIN DD *
 RESTORE  OUTDD(DISK01) -
   DS(INCL(                                    -
       A.B.C                   -
          ) -
     ) -
      RENUNC(A.B.C,PGMR.A.B.C)     -
   INDD(BACKUP) -
   REPLACE   -
   TOL(ENQF)
/*
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 222 times

Re: Restore VSAM and PDS's with ADRDSSU

Postby ballj35 » Wed Jan 26, 2011 9:01 pm

If the file A.B.C is a VSAM file, will this command bring back all the associated files and
rename them as appropriate. I.E. A.B.C gets renamed to PGMR.A.B.C, file A.B.C.DATA
renames to PGMR.A.B.C.DATA and A.B.C.INDEX gets renamed to PGMR.A.B.C.INDEX?
Thanx in advance.

Jerry
ballj35
 
Posts: 33
Joined: Mon Jan 10, 2011 10:58 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Restore VSAM and PDS's with ADRDSSU

Postby Robert Sample » Wed Jan 26, 2011 9:37 pm

Yes -- in fact, ADRDSSU will restore the alternate indexes and paths if they're all under the same data set name nodes.
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 222 times

Re: Restore VSAM and PDS's with ADRDSSU

Postby ballj35 » Wed Jan 26, 2011 9:43 pm

Awesome, thank you, will be testing later on. Really appreciate the help!
ballj35
 
Posts: 33
Joined: Mon Jan 10, 2011 10:58 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Restore VSAM and PDS's with ADRDSSU

Postby ballj35 » Mon Jan 31, 2011 6:52 pm

The job worked for the VSAM files, but did not work for the PDS member I am trying to restore.
What is the biggest issue is that in the JOB Log, it states the PDS was restored, but when I go
to review it, it does not even show on the disk. Very confusing and not sure what is going on.
I have included the JESLOG and JOBLOG to see if anyone could point me in the direction of what
is going on here and what I could change.
I have read and re-read sections of the ADRDSSU manual information for RESTORE of a LOGICAL
Data Set Backup and cannot see what I am doing incorrectly. The information is attached and I would
very much appreciate some guidance.
Thanx in advance.

Jerry
You do not have the required permissions to view the files attached to this post.
ballj35
 
Posts: 33
Joined: Mon Jan 10, 2011 10:58 pm
Has thanked: 0 time
Been thanked: 0 time

Next

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post