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
 

 

Restart JCL for a GSAM GDG

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
View previous topic :: :: View next topic  
Author Message
Hal2001

New User


Joined: 06 Jun 2006
Posts: 4

PostPosted: Thu Jun 08, 2006 4:32 pm    Post subject: Restart JCL for a GSAM GDG
Reply with quote

Can anyone tell me how the GDG is affected when you do a restart?
Should an output GSAM DB DD look like this?

//GSAM DD DSN=TEST.CUSTOMER.D00010(+1),
// UNIT=SYSDA,
// DISP=(NEW,CATLG,CATLG),
// SPACE=(CYL,(25,50),RLSE),
// DCB=(MODELDCB.NOATTRIB,RECFM=VBS,LRECL=23036,BLKSIZE=27992)

What would you have to do to the JCL if you need to do a restart? Does the GDG version become (0)? How does that impact the file Disposition since the file will be read for the restart but once the restart is positioned the output file will continue to be written too? Using the example above would the DD look like this on a restart?

//GSAM DD DSN=TEST.CUSTOMER.D00010(0),
// UNIT=SYSDA,
// DISP=(MOD,CATLG,CATLG),
// SPACE=(CYL,(25,50),RLSE),
// DCB=(MODELDCB.NOATTRIB,RECFM=VBS,LRECL=23036,BLKSIZE=27992)
Back to top
View user's profile Send private message

gautam79

New User


Joined: 30 Aug 2006
Posts: 11
Location: India

PostPosted: Wed Aug 30, 2006 12:18 pm    Post subject:
Reply with quote

Dont forget to change the GDG version number to 0.
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Wed Aug 30, 2006 1:50 pm    Post subject:
Reply with quote

hi Hal2001,

Where is the RESTART happened. Is it in a SCHDULER in PRODUCTION or a batch we submit in out testing region.

If you use RESTART in SCHDULER, The SCHDULEr takes care of the GDG versions. But in Test, You already be knowing. icon_razz.gif


~Vamsi
Back to top
View user's profile Send private message
PascalQ

New User


Joined: 12 May 2006
Posts: 20

PostPosted: Mon Sep 11, 2006 7:52 pm    Post subject:
Reply with quote

Hal2001,

Usually the scheduler at your site considers adjustments for GDGs in case of restart.

Handling GDG restarts manually is not very handy. Let us know which scheduler you use.
Back to top
View user's profile Send private message
abinash_mohapatra

New User


Joined: 28 Mar 2005
Posts: 7
Location: Bangalore

PostPosted: Mon Sep 25, 2006 4:41 pm    Post subject: Re: Restart JCL for a GSAM GDG
Reply with quote

Hi,

During restart of an IMS program, one needs to take special attention if the IMS program is using the GSAM files. If the program is using GSAM files, following points should be taken into consideration for the extended restart features.

1. Always create the sequential file (which is to be used as GSAM files in the IMS program) in the previous step by using IEFBR14 utility rather than creating in the actual program execution step.
2. In the actual program execution step, use DISP=(OLD,KEEP,KEEP) to use the GSAM files for both normal execution as well as for restart. If you use other DISP paramaters, then restarting might not give you the actual result.
3. Before restar, do not open or edit the same file. This is just to ensure that, database pointer set in GSAM files will not be lost.
4. If you are using the GDG files, just change the GDG version to "0" before restart.

Hope, this will help you.

Regards
Abinash
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 -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts GSAM from IMS online Appu IMS DB/DC 4 Tue Dec 29, 2015 6:25 pm
No new posts SEQNUM and RESTART zh_lad DFSORT/ICETOOL 2 Tue Aug 25, 2015 8:17 pm
No new posts Restart Logic suraaj DB2 5 Fri Feb 27, 2015 8:47 pm


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