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
 

 

ADRDSSU : How to Recover Multiple Tape Files in a JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: ADRDSSU : How to Recover Multiple Tape Files in a JCL
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: 8593
Location: Back in jolly old England

PostPosted: Wed Sep 17, 2008 11:51 am    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Wed Sep 17, 2008 11:55 am    Post subject: Reply to: ADRDSSU : How to Recover Multiple Tape Files in a
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    Post subject: Updated JCL
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10232
Location: italy

PostPosted: Wed Sep 17, 2008 5:05 pm    Post subject: Reply to: ADRDSSU : How to Recover Multiple Tape Files in a
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: 8593
Location: Back in jolly old England

PostPosted: Wed Sep 17, 2008 5:08 pm    Post subject:
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    Post subject: doubt regarding copying Generations...
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: 8593
Location: Back in jolly old England

PostPosted: Thu Mar 19, 2009 12:17 pm    Post subject:
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: 1703
Location: Australia

PostPosted: Thu Mar 19, 2009 3:39 pm    Post subject:
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: 8001
Location: Bellevue, IA

PostPosted: Thu Mar 19, 2009 5:24 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Mar 19, 2009 5:33 pm    Post subject:
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    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 Data replication from multiple Db2 ta... kishpra DB2 5 Mon Mar 27, 2017 9:58 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm
No new posts Calling procedure with multiple entri... steve-myers PL/I & Assembler 5 Fri Jan 27, 2017 3:33 pm


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