Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 967
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 Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
No new posts Formatting multiple records to a sing... Vignesh Sid SYNCSORT 3 Tue Nov 07, 2017 12:22 pm
No new posts Updating multiple counts in trailer!! Vignesh Sid SYNCSORT 4 Mon Nov 06, 2017 1:04 pm
No new posts Selecting a row from multiple tables! Vignesh Sid DB2 2 Thu Oct 26, 2017 6:09 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us