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
 

 

Restore all datasets from RESTORE DATASET command????

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Restore all datasets from RESTORE DATASET command????
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: 8593
Location: Back in jolly old England

PostPosted: Thu Mar 25, 2010 4:41 pm    Post subject:
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: 7999
Location: Bellevue, IA

PostPosted: Thu Mar 25, 2010 5:10 pm    Post subject:
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 User


Joined: 31 Dec 2009
Posts: 440
Location: London

PostPosted: Fri Jul 02, 2010 8:16 pm    Post subject:
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 User


Joined: 31 Dec 2009
Posts: 440
Location: London

PostPosted: Fri Jul 02, 2010 8:33 pm    Post subject:
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    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 Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Customizing the ISPF HILITE Command Pedro TSO/ISPF 3 Fri Mar 03, 2017 11:49 pm
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am


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