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

Restore all datasets from RESTORE DATASET command????


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
gsa1704

New User


Joined: 19 Mar 2010
Posts: 3
Location: Pune

PostPosted: Thu Mar 25, 2010 3:56 pm
Reply with quote

Hi all,

I am trying to restore all the datasets present in the backed up DUMP dataset, which has datasets from 8 volumes.Here is the JCL i used to dump .

Code:
//DUMP  EXEC PGM=ADRDSSU                                               
//SYSPRINT DD SYSOUT=*                                                 
//BKUP  DD UNIT=SYSDA,VOL=SER=(V230D2,VND212,VND213,VND214),           
//         DSN=CBCACHE.CICS.NCP.BKUP(+1),DISP=(,CATLG,DELETE),         
//         DSNTYPE=LARGE,                                               
//         DCB=BLKSIZE=32760,                                           
//         SPACE=(CYL,(3000,1000),RLSE)                                 
//DASD1 DD UNIT=3390,VOL=SER=CBC017,DISP=SHR                           
//DASD2 DD UNIT=3390,VOL=SER=CBC018,DISP=SHR                           
//DASD3 DD UNIT=3390,VOL=SER=CBC019,DISP=SHR                           
//DASD4 DD UNIT=3390,VOL=SER=CBC020,DISP=SHR                           
//DASD5 DD UNIT=3390,VOL=SER=CBC021,DISP=SHR                           
//DASD6 DD UNIT=3390,VOL=SER=CBC056,DISP=SHR                           
//DASD7 DD UNIT=3390,VOL=SER=CBC057,DISP=SHR                           
//DASD8 DD UNIT=3390,VOL=SER=CBC058,DISP=SHR                           
//SYSIN DD *                                                           
  DUMP DATASET -                                                       
   (INC(CBCACHE.**) -                                                   
   BY(DSORG EQ (SAM,PDS,PDSE,VSAM))) -                                 
   ALLD(*) -                                                           
   ALLE PROCESS(SYS1) -                                                 
   INDDNAME(DASD1,DASD2,DASD3,DASD4,DASD5,DASD6,DASD7,DASD8) -         
   OUTDDNAME(BKUP)                                                     
/*                                   


Now, i am trying the following JCL to restore all datasets from the DUMP taken above.

Code:
//RESTD     EXEC PGM=ADRDSSU                         
//SYSPRINT DD SYSOUT=*                               
//BKUP  DD DSN=CBCACHE.CICS.NCP.BKUP(0),DISP=OLD     
//SYSIN DD *                                         
  RESTORE DATASET -                                 
   (INC(**))          -                         
   STORCLAS(SCCBCACC) -                             
   INDDNAME(BKUP)                                   
/*             

This command says, OUTDDNAM parameter is missing , but OUTDDNAM parameter cant take multiple volumes in it, therefore i had to skip it and i used STORCLAS parameter which as the list of target volumes.


But i get this following error .


Code:
ADR381E (001)-TDDS (01), ALL OUTPUT VOLUMES INACCESSIBLE. DATA SETS NOT PROCESSED
ADR415W (001)-TDDS (02), NO DATA SETS WERE COPIED, DUMPED, OR RESTORED FROM ANY VOLUME                     
ADR013I (001)-CLTSK(01), 2010.084 06:13:53 TASK COMPLETED WITH RETURN CODE 0008


Please HELP!!!!!!!!!!
Thanks in Advance
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Mar 25, 2010 4:41 pm
Reply with quote

Click HERE to read the DFdss manual which will help you.

I would try using the control statements below
Code:
 RESTORE INDDNAME(BKUP)  (INC(**))


If that does not work then please post the whole sysprint output.

This is assuming that the datasets dumped are SMS managed.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Thu Mar 25, 2010 5:10 pm
Reply with quote

Quote:
but OUTDDNAM parameter cant take multiple volumes in it,
I'm curious about where you came up with this erroneous information. If you check the syntax diagram in chapter 2.3.12.4 of the manual DFSMS Storage Administration Reference (for DFSMShsm, DFSMSdss, DFSMSdfp), you will find that multiple DD statements are explicitly supported for OUTDD. Not only that, but OUTDYNAM explicitly allows multiple volumes, as well.
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 582
Location: London

PostPosted: Fri Jul 02, 2010 8:16 pm
Reply with quote

You need:


RESTORE IDD(BKUP) CAT STORCLAS(SCCBCACC) -
DS(INC(**))

Yiour DUMP also looks like a Physical DUMP because you used INDDNAME rather than LOGINDD for a Logical DUMP, so the RESTORE would be physical I think. Even with the Stoclas specified I'm not sure if you will be able to restore logically.
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 582
Location: London

PostPosted: Fri Jul 02, 2010 8:33 pm
Reply with quote

...sorry..to add..that is why your job is asking for OUTDDNAME, because it wants you to tell it what volumes to restore to
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 RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
Search our Forums:

Back to Top