View previous topic :: View next topic
|
Author |
Message |
cdhami
New User
Joined: 24 Jan 2006 Posts: 28
|
|
|
|
Hi,
I am having query regarding GC error code of IMS.
My workshop programs have logic of handling this status code as follows.
a. if while insert, GC errror code is encountered, the insert is repeated till the time the return code is spaces or not GC.
question : 1. Will this code have problem during restart processing?. we have restartable jobs and they are not working for specific cases which i am trying to dig out.
pls help if anyone has information about it. |
|
Back to top |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
Quote: |
a. if while insert, GC errror code is encountered, the insert is repeated till the time the return code is spaces or not GC. |
What?????? This is exceptionally WRONG logic. |
|
Back to top |
|
|
cdhami
New User
Joined: 24 Jan 2006 Posts: 28
|
|
|
|
Yes..it works well here...
also my problem is solved. this has no impact on restart.
thanks |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Yes..it works well here... |
It may run, but that is not the same as "works well". . . What should happen if it fails for a few hours. . .? |
|
Back to top |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
There are a couple of status code that can be returned on an insert - GC is not one of them. On an insert can have spaces - indicating your insert worked well - you can have an II which indicates that that you are trying to insert a duplicate - you can have a GE indicating that you are trying to do a path insert and one of your higher level segments on the path to the insert was not found. You can program for these conditions. Anything else should be a fatal error.
GC status code is a read status code. |
|
Back to top |
|
|
rasitha chandran
New User
Joined: 25 Jan 2008 Posts: 6 Location: chennai
|
|
|
|
GC can be encountered in Read or Insert. Moreover GC status code would not cause an abnormal termination . The Problem may be due to the checkpoint call being made at a wrong time, crossing a unit of work .
User actions are determined based on the Procopt that is used on the referenced PCB.
Make sure the program performs a commit process before any other call can be done to that PCB. |
|
Back to top |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
Are you running IMS version 9 or above? |
|
Back to top |
|
|
|