Cobol Call fails with S0C4



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Cobol Call fails with S0C4

Postby cobol_user » Mon Aug 06, 2007 12:05 pm

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_user
 
Posts: 2
Joined: Mon Aug 06, 2007 11:46 am
Has thanked: 0 time
Been thanked: 0 time

Re: Cobol Call fails with S0C4

Postby CICS Guy » Mon Aug 06, 2007 12:19 pm

How about a sample of your CALL and USING?
CICS Guy
 
Posts: 246
Joined: Wed Jun 20, 2007 4:08 am
Has thanked: 0 time
Been thanked: 0 time

Re: Cobol Call fails with S0C4

Postby cobol_user » Mon Aug 06, 2007 12:26 pm

CALL WS-PROGRAM-NAME USING COMM-AREA
END-CALL
cobol_user
 
Posts: 2
Joined: Mon Aug 06, 2007 11:46 am
Has thanked: 0 time
Been thanked: 0 time

Re: Cobol Call fails with S0C4

Postby CICS Guy » Mon Aug 06, 2007 1:05 pm

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.
CICS Guy
 
Posts: 246
Joined: Wed Jun 20, 2007 4:08 am
Has thanked: 0 time
Been thanked: 0 time

Re: Cobol Call fails with S0C4

Postby vasanthamugi » Sat Dec 22, 2007 4:07 pm

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.
vasanthamugi
vasanthamugi
 
Posts: 14
Joined: Thu Dec 20, 2007 2:38 pm
Has thanked: 0 time
Been thanked: 0 time


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post