View previous topic :: View next topic |
Author |
Message |
pradeepg Beginner

Joined: 06 Jan 2003 Posts: 25 Topics: 12 Location: Columbus, OH
|
Posted: Tue Aug 09, 2005 8:33 am Post subject: S0C4 abend while calling a subroutine |
|
|
Hi,
We got a COBOL/DB2 load module from another application and we are trying to call that from a program we wrote. We are encountering S0C4 abend. In debug mode I can see the linkage section variables populated correctly before calling the program but when the control passed to called program the linkage section is having garbage (at least not the right values) and abending with S0C4 even before it reaches the Procedure division.
Any pointers ??
Thanks in advance.
- Pradeep |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Tue Aug 09, 2005 8:37 am Post subject: |
|
|
pradeepg,
check if any of the following are applies to your pgm
Code: |
Possible causes for this abend include:
COBOL: Invalid address was referenced due to subscript error
or bad parameter passed
In group move, receiving record variable length
defined incorrectly
Tried moving variable length record that was larger
than target field size
Tried to read or write a file which was not open
Used DD DUMMY with logic that moves high values to
FD
Tried to call within COBOL SORT I/O procedure
Tried to "goback" in the SORT output procedure
|
Hope this helps...
Cheers
kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Cogito-Ergo-Sum Advanced
Joined: 15 Dec 2002 Posts: 637 Topics: 43 Location: Bengaluru, INDIA
|
Posted: Tue Aug 09, 2005 9:51 am Post subject: |
|
|
Pradeep,
Can you post the structures used here? _________________ ALL opinions are welcome.
Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes. |
|
Back to top |
|
 |
pradeepg Beginner

Joined: 06 Jan 2003 Posts: 25 Topics: 12 Location: Columbus, OH
|
Posted: Wed Aug 10, 2005 9:43 am Post subject: |
|
|
As suspected it was the inconsistency in linkage section.
Thanks a lot for your pointers |
|
Back to top |
|
 |
|
|