|
View previous topic :: View next topic
|
| Author |
Message |
Kather Basha
New User
Joined: 18 Apr 2007 Posts: 13 Location: Coimbatore
|
|
|
|
One of my jobs abend with code 012, the COBOL program is reading a DB2 table. The program is code such a way that it will dispaly any Bad SQL return code. So in the SAR report i can see SQL RETURN CODE = - 0180. And in addition to that Abend Aid report is saying that
CODE=CEE3207S / EXPECTED COMP CODE=S0C7
C15 ,X ,X -12M BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
C15 ,X ,X - 44K BYTES RESERVE REQUESTED, 12,216K BYTES USED
C15 ,X ,X -20K BYTES OF EMERGENCY SPACE ALLOCATED
C15 ,X ,X -11M BYTES OF VIRTUAL STORAGE AVAILABLE ABOVE THE 16MEG
C15 ,X ,X - 0 BYTES RESERVE REQUESTED, 11M BYTES USED
C15 ,X ,X -G=1336
C15 ,X ,X -TURNAROUND SORT PERFORMED
C15 ,X ,X -E35 USER EXIT RETURN CODE TERMINATE
C15 ,X ,X -INSERT 1134, DELETE 0
C15 ,X ,X -SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
I checked that is the program writing on the table. No it is just reading
I verified during the execution of the program is some other job is reading or locking the table.. actually no intervention during the job run.
when i simply restart the job, it is running fine.
can i have any suggestion for this ?
( i am not sure where i can post this COBOL or DB2 so i posted here ) |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Do you have a resolution for this?
Have you changed the code or did the problem just "go away"? |
|
| Back to top |
|
 |
Kather Basha
New User
Joined: 18 Apr 2007 Posts: 13 Location: Coimbatore
|
|
|
|
No, Yet to find a solution
Still i am restarting the job, whenever it abends. |
|
| Back to top |
|
 |
priyamnavada
New User
Joined: 24 Dec 2005 Posts: 52 Location: hyderabad
|
|
|
|
If its a SOC7 error, you can get the offset address/statement number from the spool. taking that address/number, see that in the footprints for a program which is running in the JOB.
from that you can get the particular variable that has been changed. |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Please post the jcl from this step.
How often does this step fail?
It sounds like there may be bad/missing data (a date/time?) somewhere on the initial run and by the time the re-run is done, it has been resolved. It may be that the code is incomplete/incorrect will not work in every case.
Have you looked into what causes the -180? Have you verified that the 180 happens before any other problems? What info about the -180 have you captured (posting all of the diafgnostic info will help)? If the programs tries to continue after the -180 (or after the 0c7 for that matter if it occurs before the -180) strange results may occur.
Is this a new program or did an existing program begin having errors after some code or environment change was made? |
|
| Back to top |
|
 |
Kather Basha
New User
Joined: 18 Apr 2007 Posts: 13 Location: Coimbatore
|
|
|
|
Hi,
please find below the JCL code for this step;
//X EXEC DB2TSOR,MBR=LE3A61DI,PLAN=LE3A61DI,REGION=0K
//X.STEPLIB DD
// DD
// DD
// DD
// DD
// DD
// DD DSN=SYS3.UNI.C31.LOADLIB,DISP=SHR
//** DD'S FOR UACR
//X.UNIUF DD DSN=SYS3.UNI.UNIUF,DISP=SHR
//X.UNICF DD DSN=SYS3.UNI.UNICF,DISP=SHR
//X.UNIDF DD DSN=SYS3.UNI.UNIDF,DISP=SHR
//X.UNIHF DD DSN=SYS3.UNI.UNIHF,DISP=SHR
//X.UNIACR DD SYSOUT=(O,H4C15),DEST=R49,
// DCB=(RECFM=FBA,LRECL=133,BLKSIZE=133)
//X.UNIRCR DD SYSOUT=*,DCB=(RECFM=FBA,LRECL=80,BLKSIZE=80)
//*** END UACR DD'S
//X.FILEA DD DSN=PRODCICS.P00VS.AAFPRT00,DISP=OLD
//X.FILEB DD DSN=PRODVS2.P6BA.F3D01.EXPLAN.CLUSTER,DISP=OLD
*
*
This is a daily job that fails on an average once in 2 weeks. But there is no pattern as such.
Doesn't look like bad data since we just restart the job after some time, without making any changes to the job.
-180 is Bad data in Date/Time/Timestamp. Not sure of any practical scenario when this can happen.
I am kind of clueless as to what is causing this problem. |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
It may be that when you get the -180, some invalid numerics are put "in play" and cause the later 0c7. This could be due to some field not being initialized or some field that has received invalid data.
Does the code terminate the run when the -180 is encountered? If not, maybe it should? |
|
| Back to top |
|
 |
veerababu_p
New User
Joined: 18 Mar 2006 Posts: 5 Location: mumbai
|
|
|
|
| You are selecting column which is not present in the column |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Might this be a typo?
| Quote: |
| You are selecting column which is not present in the column |
Please clarify. . . |
|
| Back to top |
|
 |
|
|
 |
All times are GMT + 6 Hours |
|