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
 

 

Creating multiple GDG verion in same job

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
pingte

Active User


Joined: 03 Dec 2005
Posts: 120
Location: india

PostPosted: Fri Jun 01, 2007 11:05 am    Post subject: Creating multiple GDG verion in same job
Reply with quote

Hi,
i have a job with following criteria.

Step 1; create a new GDG version (+1) as X.Y.Z(+1)

Step 2: create one more version of same GDG as X.Y.Z (+2)

Step 3: In this step use both the version as i/p file to a program.
Code:

//ERM  EXEC PGM=PROG1
//FILE1 DD DSN=X.Y.Z(+1),DISP=SHR
//FILE2 DD DSN=X.Y.Z(+2),DISP=SHR




Is this feasible icon_question.gif Can (+2) version be created and refernced in same job icon_question.gif
Back to top
View user's profile Send private message

muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Chennai

PostPosted: Fri Jun 01, 2007 11:23 am    Post subject: Re: Creating multiple GDG verion in same job
Reply with quote

Did you make a try ,what happened?
Back to top
View user's profile Send private message
pingte

Active User


Joined: 03 Dec 2005
Posts: 120
Location: india

PostPosted: Fri Jun 01, 2007 11:41 am    Post subject:
Reply with quote

this was aked in an interview ...
i didn't try..
Back to top
View user's profile Send private message
Naresh Kumar Reddy P

New User


Joined: 24 May 2007
Posts: 8
Location: Bangalore

PostPosted: Fri Jun 01, 2007 12:18 pm    Post subject:
Reply with quote

Yes! You can create & reference the second generation in the same job using +2.

Thanks
Reddy
Back to top
View user's profile Send private message
srebba
Warnings : 1

New User


Joined: 26 Apr 2007
Posts: 37
Location: USA

PostPosted: Fri Jun 01, 2007 7:21 pm    Post subject: Re: Creating multiple GDG verion in same job
Reply with quote

Yes,
U can create adn reffered till limit is reached,

Thank you,
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Fri Jun 01, 2007 8:01 pm    Post subject:
Reply with quote

Hello,

While you can refer to the +1, +2, etc version in the same job, it may complicate any restart procedures.
Back to top
View user's profile Send private message
srebba
Warnings : 1

New User


Joined: 26 Apr 2007
Posts: 37
Location: USA

PostPosted: Fri Jun 01, 2007 8:31 pm    Post subject: Re: Creating multiple GDG verion in same job
Reply with quote

I dont understand why its much complicate. while restart ....


Simpy make the changes +2 to 0 and +1 to -1 GDGs
Please let me know if this wrong


Thank you
sree
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 962
Location: Richmond, Virginia

PostPosted: Fri Jun 01, 2007 8:50 pm    Post subject:
Reply with quote

As noted in an earlier post, some schedulers, including Control-M's Control-R restart facility, handle the gen# adjustment for you.
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Sat Jun 02, 2007 1:45 am    Post subject:
Reply with quote

Hello,

If/when you find yourself trying to restart a very old job that has been "enhanced" many times to include multiple generations of multiple gdg files and uses some convoluted condition code testing, you will get an appreciation of this
Quote:
Simpy make the changes +2 to 0 and +1 to -1 GDGs
Please let me know if this wrong

I would not say that your idea is wrong, just that some places have jobstreams that in themselves are not simple and restarts are an adventure.

Unfortunately, some of the places i've seen with this type of jobs also have not invested in good scheduling software.
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 -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Validating file with multiple header/... mohitsaini DFSORT/ICETOOL 6 Thu Apr 13, 2017 1:53 am
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 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


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