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

How to RESTORE more than one Tape datasets to DASD?


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

Active User


Joined: 22 Dec 2007
Posts: 126
Location: Bangalore

PostPosted: Thu Jan 07, 2010 3:42 pm
Reply with quote

Hi,

We have 4 different Tapes (UL0009, UL0010, UL0011, UL0012) which are all very old 3590 and about to expire. Now my job is to RESTORE all the Tape files to DASD, so that after verification we can DUMP them back to new tape.I have around 100 Tape files of different length. Below is the JCL I have prepared but not sure whether will it work correct or not. So I want to reconfirm with you all. Could anyone please have a look and let me know if this is correct or if it is not then can anyone throw some light on it by sharing excerpt of correct JCL.

Code:

//RESTOR1  EXEC  PGM=ADRDSSU,REGION=0M                             
//SYSPRINT DD  SYSOUT=*
//SYSCASLG  DD  DUMMY                                             
//BACKUP   DD  DISP=(OLD,KEEP,KEEP),UNIT=3590V,                     
//         VOL=SER=(UL0009,UL0010,UL0011,UL0012)
//DASD     DD  UNIT=(SYSDAL,32),                                   
//             SPACE=(CYL,(800,800),RLSE),DISP=(,CATLG,DELETE)     
//SYSIN    DD *                                                     
     RESTORE INDDNAME(BACKUP) OUTDDNAME(DASD) -                     
     DATASET(INCLUDE(USCP.IRSTAPES.OFFSITE.**))-
     TGTGDS(ACTIVE) –
     RENAME(USCP.IRSTAPES.OFFSITE.**,CF1P.RR.**)

In the above JCL I am trying to RESTORE all the Tape Datsets with USCP.IRSTAPES.OFFSITE.** qualifier. As there are around 100 tape datsets, I don't have full idea on how shall I provide the DSN name (see in the JCL BACKUP step there is no DSN name).
Is it mandatory to provide the DSN name?
or
do I need to mention 100 DSN name with 100 DD statements to RESTORE those 100 tape datasets?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Thu Jan 07, 2010 5:49 pm
Reply with quote

DSN can be specified by high level qualifier and wild card if desired on the RESTORE.

The ** is a wild card in ADRDSSU -- it means match anything from this point on in the DSNAME. You do not have to specify all 100 data set names if they share a common high level qualifier as you can use the **.

Your RENAME parameter, though, needs work -- the format is RENAME(old.hlq.**,new.hlq.**). The manual will tell you the details of the statement parameter.

You may want to work with your site storage administrator to ensure you're restoring to a DASD pool with enough space to restore the data sets.
Back to top
View user's profile Send private message
subratarec

Active User


Joined: 22 Dec 2007
Posts: 126
Location: Bangalore

PostPosted: Thu Jan 07, 2010 6:07 pm
Reply with quote

Hi Robert,

Thanks for your reply. Yes that's one I wanted to verify. Cause I tried to give DSN=dataset qualifier name.** (I mean in step BACKUP) but we can't provide * in the DSN name and the JCL was throwing syntax error.

Yes I need to contact with storage admin cause space could be a potential issue. But before that wanted to make sure that my JOB is fine or not.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Thu Jan 07, 2010 6:10 pm
Reply with quote

The backup format is DSNAME(INCLUDE(HLQ.**)) or other variations (EXCLUDE is an option). Your post has DSNAME= and the equals sign is not used in ADRDSSU parameters.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Fri Jan 08, 2010 3:33 am
Reply with quote

Hi,

Code:
//BACKUP   DD  DISP=(OLD,KEEP,KEEP),UNIT=3590V,                     
//         VOL=SER=(UL0009,UL0010,UL0011,UL0012)


Doesn't the above JCL also require a dataset name or bypass label processing ?

Also, do the 4 tapes belong to the same dataset ?


Gerry
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Fri Jan 08, 2010 3:53 am
Reply with quote

Gerry, if it is a DF/DSS backup then presumably all four tapes are from the same back up (we have a number of jobs that use 15 to 20 tapes for DF/DSS back ups). However, your eye did catch the DSNAME missing -- that's usually specified (or, as you said, BLP is used).
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Fri Jan 08, 2010 4:12 am
Reply with quote

Hi Robert,

I was more concerned that the OP was trying to concatenate multiple files and not that the dataset was multi volume.


Gerry
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Fri Jan 08, 2010 4:18 am
Reply with quote

Yeah, concatenating DF/DSS backups probably doesn't work -- I've never tried it but I can see problems with doing so. I didn't even think of that possibility.
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 580
Location: London

PostPosted: Thu Jan 14, 2010 9:06 pm
Reply with quote

If each tape is a separate DUMP dataset you'd need a separate DD for each and then multiple RESTORE statements in the sysin, each referencing the relative DDname on the INDD(DDname) parameter. It can still be with the same step.
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 Deleting a Tape file JCL & VSAM 14
No new posts Merging 2 datasets into one DFSORT/ICETOOL 1
No new posts DASD - non SMS - volser change - VSAM... JCL & VSAM 2
No new posts PL/I, VB Datasets and the RDW PL/I & Assembler 4
No new posts how to get list of all VSAM/non-VSAM ... JCL & VSAM 13
Search our Forums:

Back to Top