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

Copy a set of gdg generations


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

New User


Joined: 07 Apr 2005
Posts: 56

PostPosted: Mon Jul 05, 2010 6:05 pm
Reply with quote

Hi,

I have a scenerio where i have 50 generation of a tape file. I have to copy each generation to another gdg tape file using some outrec function.

For one generation i have my proc ready where i have hard coded the generation number. But for 50 generation is there any way which can help me in using just one generic proc? Otherwise i have to write 50 step for 50 generation.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon Jul 05, 2010 6:10 pm
Reply with quote

IDCAMS Repro for 50 input/output datasets.
It is some jcl/repro statements coding, but it keeps you
of the street.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Mon Jul 05, 2010 6:10 pm
Reply with quote

Write 50 steps for 50 generations.

To be honest here, you could have done that in not much more time than it took you to post.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon Jul 05, 2010 6:12 pm
Reply with quote

I think the posted time stamp needs some seconds added, to make
clear who was first.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Mon Jul 05, 2010 6:16 pm
Reply with quote

I delayed my response to put the second line in.
Drat and double drat - I would have beaten you otherwise icon_lol.gif
Back to top
View user's profile Send private message
vinit_infy
Warnings : 1

New User


Joined: 07 Apr 2005
Posts: 56

PostPosted: Mon Jul 05, 2010 6:16 pm
Reply with quote

Ya i know i can just repeat 50 times in 5 seconds..but there is something called smart work...i was looking for that only..
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon Jul 05, 2010 6:25 pm
Reply with quote

vinit_infy wrote:
Ya i know i can just repeat 50 times in 5 seconds..but there is something called smart work...i was looking for that only..


Faster than 5 seconds? I think thats smart enough.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Mon Jul 05, 2010 6:27 pm
Reply with quote

Define "Smart work"
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jul 05, 2010 9:23 pm
Reply with quote

Hello,

Suggest you consider a 1-step PROCedure (cataloged or proc/pend inline) and then simply have 50 EXECs with a symbolic parameter (or multiple if needed).
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 VB to VB copy - Full length reached SYNCSORT 8
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts DB2 Table - Image copy unload IBM Tools 2
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
Search our Forums:

Back to Top