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

Creating multiple GDG verion in same job


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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: Canada

PostPosted: Fri Jun 01, 2007 11:23 am
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
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
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
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

Moderator Emeritus


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

PostPosted: Fri Jun 01, 2007 8:01 pm
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
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

Senior Member


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

PostPosted: Fri Jun 01, 2007 8:50 pm
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

Moderator Emeritus


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

PostPosted: Sat Jun 02, 2007 1:45 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Grouping by multiple headers DFSORT/ICETOOL 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
Search our Forums:

Back to Top