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

Handling the status code GG


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
psubra001

New User


Joined: 01 Feb 2006
Posts: 15

PostPosted: Wed Feb 01, 2006 3:40 am
Reply with quote

I have an application program(cobol) that runs in DL/I mode with the following processing

Step A: Reads sequential file for the processing record
Step B: Reads (only read) an IMS-DB for validation of data
Step C: Updates two VSAM files

At step B, I get the status code GG (Concurrent update/Invalid Pointer; I've used the PROCOPT=GOT). In this situation the program is forced to abend. Now I restore the VSAM files and start this step all over again.

Is it possible for me to implement checkpoint/restart logic in this code?
Is it possible to give these two vsam files as GSAM in the PCB?
If it is possible, can I have this job running in DL/I mode itself?
Back to top
View user's profile Send private message
gowtham_1982
Warnings : 1

Active User


Joined: 02 Dec 2005
Posts: 109

PostPosted: Wed Feb 01, 2006 10:12 am
Reply with quote

psubra001 wrote:
I have an application program(cobol) that runs in DL/I mode with the following processing

Step A: Reads sequential file for the processing record
Step B: Reads (only read) an IMS-DB for validation of data
Step C: Updates two VSAM files

At step B, I get the status code GG (Concurrent update/Invalid Pointer; I've used the PROCOPT=GOT). In this situation the program is forced to abend. Now I restore the VSAM files and start this step all over again.

Is it possible for me to implement checkpoint/restart logic in this code?
Is it possible to give these two vsam files as GSAM in the PCB?
If it is possible, can I have this job running in DL/I mode itself?


hi psubra001,

i think you need to change the PROCPOT to A in your PSB. This can fix your GG status code.

yes, it is possible to implement ckpt and xrst calls in the program.

you can specify these VSAM files as GSAM files in your PSB as mentioning them as TYPE=GSAM in the PCB. For more info, please refers manuals.
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 -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts Job completes in JES, but the status ... IBM Tools 1
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
Search our Forums:

Back to Top