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?
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.