S0C4 in a COBOL program

Support for C, C++, COBOL, PL/I, Fortran and assembler applications' runtime Environment LE.
Balr14
Posts: 41
Joined: Fri Oct 01, 2010 9:43 pm
Skillset: Assembler, COBOL, CICS, DB2, Pl/I, JCL and tableBASE
Referer: google search

S0C4 in a COBOL program

Postby Balr14 » Wed Oct 06, 2010 11:40 pm

I have an Assembler program that does a LOAD and BASM to invoke a COBOL program. The COBOL program is abending with a S0C4 because it doesn't have variables from the Assembler program. The COBOL program is running in a different LE enclave. It seems to me, I have to figure out a way get the COBOL program to run in the same enclave as the Assembler program, or get those variables it's missing to it. Would CEEENTRY do this or is there a run-time LE parm that will handle it?

enrico-sorichetti
Global moderator
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
Referer: www.ibmmainframes.com

Re: S0C4 in a COBOL program

Postby enrico-sorichetti » Thu Oct 07, 2010 3:57 am

The COBOL program is abending with a S0C4 because it doesn't have variables from the Assembler program.

please explain better what You mean by ... having variables
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort

enrico-sorichetti
Global moderator
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
Referer: www.ibmmainframes.com

Re: S0C4 in a COBOL program

Postby enrico-sorichetti » Thu Oct 07, 2010 4:07 am

cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort

Balr14
Posts: 41
Joined: Fri Oct 01, 2010 9:43 pm
Skillset: Assembler, COBOL, CICS, DB2, Pl/I, JCL and tableBASE
Referer: google search

Re: S0C4 in a COBOL program

Postby Balr14 » Thu Oct 07, 2010 7:10 pm

Thanks for the link. I'm going to give it a try. I think I have more problems with this program, but at least that eliminates one issue. This whole project is looking like a real dumb idea.

Balr14
Posts: 41
Joined: Fri Oct 01, 2010 9:43 pm
Skillset: Assembler, COBOL, CICS, DB2, Pl/I, JCL and tableBASE
Referer: google search

Re: S0C4 in a COBOL program

Postby Balr14 » Thu Oct 07, 2010 7:40 pm

Sorry to be so vague. This is a 15 year old program I inherited that didn't work. I'm just trying it get it to work well enough to get an idea of exactly what it's trying to accomplish. Here is what I know so far:

The Assembler main module establishes a VSAM JRNL exit, then calls the COBOL program. The COBOL program issues several VSAM commands; the last one drives the JRNL exit. The JRNL exit returns to the COBOL program; the COBOL program fails on a subsequent VSAM command. The COBOL program is in a different enclave than the invoking Assembler program that established the JRNL exit. I don't know where the JRNL exit is.

I get a 400 line CEEDUMP from the COBOL program and the Assembler main keeps on running, so I haven't much to work with.

User avatar
dick scherrer
Global moderator
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am

Re: S0C4 in a COBOL program

Postby dick scherrer » Fri Oct 08, 2010 1:26 am

Hello,

Did you try what i suggested elsewhere? Write a cobol "stub" that calls the assembler which then calls the other cobol.

By nesting, you may be able to keep everything in the same enclave. Might not, but it shouldn't take much work to try it.
Hope this helps,
d.sch.

Balr14
Posts: 41
Joined: Fri Oct 01, 2010 9:43 pm
Skillset: Assembler, COBOL, CICS, DB2, Pl/I, JCL and tableBASE
Referer: google search

Re: S0C4 in a COBOL program

Postby Balr14 » Fri Oct 08, 2010 1:51 am

That was my next fix attempt. This relates to the topic I posted in the VSAM forum. It would be so easy to simply front-end VSAM with my own "VSAM" module at link edit time. But, I can't do that until I prove this way sucks.

User avatar
dick scherrer
Global moderator
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am

Re: S0C4 in a COBOL program

Postby dick scherrer » Fri Oct 08, 2010 2:14 am

Hello,

Well, if we can't help fix it, we can (at least) commiserate :)

Good luck :!:

d


  • Similar Topics
    Replies
    Views
    Last post