View previous topic :: View next topic
|
Author |
Message |
subratarec
Active User
Joined: 22 Dec 2007 Posts: 126 Location: Bangalore
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
subratarec
Active User
Joined: 22 Dec 2007 Posts: 126 Location: Bangalore
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Pete Wilson
Active Member
Joined: 31 Dec 2009 Posts: 580 Location: London
|
|
|
|
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 |
|
|
|