Page 1 of 2

Restore VSAM and PDS's with ADRDSSU

PostPosted: Wed Jan 26, 2011 4:17 pm
by ballj35
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

Re: Restore VSAM and PDS's with ADRDSSU

PostPosted: Wed Jan 26, 2011 4:27 pm
by ballj35
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

Re: Restore VSAM and PDS's with ADRDSSU

PostPosted: Wed Jan 26, 2011 6:02 pm
by Robert Sample
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.

Re: Restore VSAM and PDS's with ADRDSSU

PostPosted: Wed Jan 26, 2011 6:29 pm
by ballj35
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.

Re: Restore VSAM and PDS's with ADRDSSU

PostPosted: Wed Jan 26, 2011 6:45 pm
by ballj35
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.

Re: Restore VSAM and PDS's with ADRDSSU

PostPosted: Wed Jan 26, 2011 6:52 pm
by Robert Sample
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)
/*

Re: Restore VSAM and PDS's with ADRDSSU

PostPosted: Wed Jan 26, 2011 9:01 pm
by ballj35
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

Re: Restore VSAM and PDS's with ADRDSSU

PostPosted: Wed Jan 26, 2011 9:37 pm
by Robert Sample
Yes -- in fact, ADRDSSU will restore the alternate indexes and paths if they're all under the same data set name nodes.

Re: Restore VSAM and PDS's with ADRDSSU

PostPosted: Wed Jan 26, 2011 9:43 pm
by ballj35
Awesome, thank you, will be testing later on. Really appreciate the help!

Re: Restore VSAM and PDS's with ADRDSSU

PostPosted: Mon Jan 31, 2011 6:52 pm
by ballj35
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