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
 

 

How to RESTORE more than one Tape datasets to DASD?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
subratarec

New User


Joined: 22 Dec 2007
Posts: 73
Location: Bangalore

PostPosted: Thu Jan 07, 2010 3:42 pm    Post subject: How to RESTORE more than one Tape datasets to DASD?
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: 7936
Location: Bellevue, IA

PostPosted: Thu Jan 07, 2010 5:49 pm    Post subject:
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

New User


Joined: 22 Dec 2007
Posts: 73
Location: Bangalore

PostPosted: Thu Jan 07, 2010 6:07 pm    Post subject:
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: 7936
Location: Bellevue, IA

PostPosted: Thu Jan 07, 2010 6:10 pm    Post subject:
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: 1703
Location: Australia

PostPosted: Fri Jan 08, 2010 3:33 am    Post subject:
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: 7936
Location: Bellevue, IA

PostPosted: Fri Jan 08, 2010 3:53 am    Post subject:
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: 1703
Location: Australia

PostPosted: Fri Jan 08, 2010 4:12 am    Post subject:
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: 7936
Location: Bellevue, IA

PostPosted: Fri Jan 08, 2010 4:18 am    Post subject:
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 User


Joined: 31 Dec 2009
Posts: 437
Location: London

PostPosted: Thu Jan 14, 2010 9:06 pm    Post subject:
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    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 TAPE VERIFY utility?? MrExtraordinare JCL & VSAM 3 Fri Dec 09, 2016 10:57 pm
No new posts DUMP DATASETS VS TRACE DATASETS! lind sh CICS 4 Tue Dec 06, 2016 11:31 pm
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm
No new posts stacking files on a tape Pedro JCL & VSAM 7 Wed Aug 17, 2016 11:11 pm


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