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

ADRDSSU : How to Recover Multiple Tape Files in a JCL


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

New User


Joined: 01 Nov 2007
Posts: 17
Location: Chennai

PostPosted: Wed Sep 17, 2008 10:40 am
Reply with quote

Hi,

i know the following JCL is used to recover a file from tape AAA.BBB.CCCCCC.DDDDDD.DTMMDDYY.TMTAPE1.

//RECOVER EXEC PGM=ADRDSSU,REGION=4096K
//SYSPRINT DD SYSOUT=*
//INDD1 DD DSN=AAA.BBB.CCCCCC.DDDDDD.DTMMDDYY,DISP=OLD
//OUTDD1 DD UNIT=SYSDA,DISP=(NEW,CATLG,DELETE)
//SYSIN DD *
RESTORE INDDNAME(INDD1) OUTDDNAME(OUTDD1) -
DATASET(INCLUDE( -
AAA.BBB.CCCCCC.DDDDDD.DTMMDDYY.TMTAPE1-
)) -
RENAMEU(IPT)
/*

i have 1000 of such tape files, instead of recovering 1 by 1 , i need a JCL which can retrieve multiple tape files in a single Job.

Please provide me such a JCL if the above request is feaisble.

Regards,
Chinna.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Sep 17, 2008 11:51 am
Reply with quote

Yes it is feasible, you need to add one DD for each input tape that you wish to use.

Also the control statements will need to reflect which DD name is to be used as input.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Sep 17, 2008 11:55 am
Reply with quote

Chinna,

You can also have an instream PROC with ADRDSSU and then have seperate steps for each input file.

Each step would call that PROC with a different input file.
Back to top
View user's profile Send private message
chinnaraj

New User


Joined: 01 Nov 2007
Posts: 17
Location: Chennai

PostPosted: Wed Sep 17, 2008 4:59 pm
Reply with quote

Hi expat,

i have tried giving multiple DD' s as given below.

//STEP01 EXEC PGM=ADRDSSU,REGION=4096K
//SYSPRINT DD SYSOUT=*
//INDD1 DD DSN=AAA.BBB.CCCCCC.DDDDDD.DTMMDD1,DISP=OLD
// DD DSN=AAA.BBB.CCCCCC.DDDDDD.DTMMDD2,DISP=OLD
//OUTDD1 DD UNIT=SYSDA,DISP=(NEW,CATLG,DELETE)
//SYSIN DD *
RESTORE INDDNAME(INDD1) OUTDDNAME(OUTDD1) -
DATASET(INCLUDE( -
AAA.BBB.CCCCCC.DDDDDD.DTMMDDYY.TMTAPE1-
)) -
RENAMEU(IPT)
RESTORE INDDNAME(INDD1) OUTDDNAME(OUTDD1) -
DATASET(INCLUDE( -
AAA.BBB.CCCCCC.DDDDDD.DTMMDDYY.TMTAPE2-
)) -
RENAMEU(IPT)
/*

But this approach also not working...
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Sep 17, 2008 5:05 pm
Reply with quote

dfdss dumps cannot be concatenated....

You will have to run a job with 1000 input dd for the dumps
and the sysin will have 1000 restore statements

if You do not want to write it by hand You can try to write a rexx to generate
the jcl
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Sep 17, 2008 5:08 pm
Reply with quote

I should have made cl;ear that I did actually mean a DDNAME rather than just an additional DD statement

Code:

//INDD1    DD DSN=AAA.BBB.CCCCCC.DDDDDD.DTMMDD1,DISP=OLD
//INDD2    DD DSN=AAA.BBB.CCCCCC.DDDDDD.DTMMDD2,DISP=OLD


Do you know which tape volume the dataset to be restored resides on ?

Why do you want/need to process all of the backup tapes ?
Back to top
View user's profile Send private message
jigneshpatel

New User


Joined: 05 Jun 2007
Posts: 1
Location: india

PostPosted: Thu Mar 19, 2009 11:22 am
Reply with quote

Would this utility work to copy the generations of one GDG to another GDG generations...?
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 19, 2009 12:17 pm
Reply with quote

1) Try it yourself and see
2) DO NOT start a new thread within an existing one. Start a NEW one !!!
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Thu Mar 19, 2009 3:39 pm
Reply with quote

Hi,

I would be very careful allocating 1000 DD statements in a single step especially when they are all on TAPE, unless you use UNIT=AFF you are going to be disappointed as I doubt you have 1000 tape drives available at once.


Gerry


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: Thu Mar 19, 2009 5:24 pm
Reply with quote

Gerry: even if they have 1000 tape drives available, I suspect the operations group might not be too happy if somebody allocated all of them at once to one job ... assuming that could even be done, of course.
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 19, 2009 5:33 pm
Reply with quote

Well, when the SP (Secondary poster) asked the question they never specified the location of the GDG generatios, if they are on DASD - which DFdss would do, or on tape which Dfdss would not do.

So as usual, clarification needed from the poster.
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 0
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
Search our Forums:

Back to Top