Hi,
I am trying to execute a call from a batch Cobol program to COBOL SLC (Single Line of code). The jcl abends with S0C4. The control goes to the program and abends as soon as I use Linkage section variables. I have used the same copy book to call and to receive in the claled program linkage. Can someone help me please?
Thanks...
Cobol Call fails with S0C4
-
- Posts: 2
- Joined: Mon Aug 06, 2007 11:46 am
- Skillset: COBOL, DB2, CICS, JCL
- Referer: Google
Re: Cobol Call fails with S0C4
How about a sample of your CALL and USING?
-
- Posts: 2
- Joined: Mon Aug 06, 2007 11:46 am
- Skillset: COBOL, DB2, CICS, JCL
- Referer: Google
Re: Cobol Call fails with S0C4
CALL WS-PROGRAM-NAME USING COMM-AREA
END-CALL
END-CALL
Re: Cobol Call fails with S0C4
CICS Guy wrote:How about a sample of your CALL and USING?
I deserved that....Please post more information, like the call (done) and the data areas being passed.
Please post the called program's linkage and usings.
-
- Posts: 14
- Joined: Thu Dec 20, 2007 2:38 pm
- Skillset: mainframe skills: jcl,vsam,cobol,db2,cics
- Referer: ibmmainframes.com
Re: Cobol Call fails with S0C4
soc4 is the storage voilation error. soc4 can occur due to the followings
1. an uncontrolle loop movement on the top of instruction referencing a field in a record of closed file.
2. referencing an item in linkage section where there was no parm in jcl.
3. calling/called programs have different length for items passed in linkage section.
4. an input or output procedure is still running.
these are the resons why we get soc4 error . check ur program with above conditions.
if i am wrong i m sorry please correct me.
1. an uncontrolle loop movement on the top of instruction referencing a field in a record of closed file.
2. referencing an item in linkage section where there was no parm in jcl.
3. calling/called programs have different length for items passed in linkage section.
4. an input or output procedure is still running.
these are the resons why we get soc4 error . check ur program with above conditions.
if i am wrong i m sorry please correct me.
vasanthamugi