S0C4 in a COBOL program



Support for C, C++, COBOL, PL/I, Fortran and assembler applications' runtime Environment LE.

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?
Balr14
 
Posts: 41
Joined: Fri Oct 01, 2010 9:43 pm
Has thanked: 0 time
Been thanked: 1 time

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
Has thanked: 0 time
Been thanked: 165 times

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
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

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
Has thanked: 0 time
Been thanked: 1 time

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.
Balr14
 
Posts: 41
Joined: Fri Oct 01, 2010 9:43 pm
Has thanked: 0 time
Been thanked: 1 time

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.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

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.
Balr14
 
Posts: 41
Joined: Fri Oct 01, 2010 9:43 pm
Has thanked: 0 time
Been thanked: 1 time

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
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to Language Environment

 


  • Related topics
    Replies
    Views
    Last post