S0C4 in a COBOL program
-
- 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
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?
-
- 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
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
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
-
- 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
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
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
-
- 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
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.
-
- 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
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.
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.
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: S0C4 in a COBOL program
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.
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.
d.sch.
-
- 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
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.
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: S0C4 in a COBOL program
Hello,
Well, if we can't help fix it, we can (at least) commiserate
Good luck
d
Well, if we can't help fix it, we can (at least) commiserate

Good luck

d
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Calling Java program on UNIX/USS from a COBOL CICS program?
by zbius » Tue Nov 05, 2024 2:37 pm » in IBM Cobol - 2
- 2555
-
by zbius
View the latest post
Wed Nov 06, 2024 6:02 pm
-
-
- 2
- 3139
-
by enrico-sorichetti
View the latest post
Mon Oct 30, 2023 6:25 pm
-
- 1
- 2412
-
by engh
View the latest post
Fri Jul 08, 2022 7:31 pm
-
- 6
- 1918
-
by sergeyken
View the latest post
Sat Jul 17, 2021 12:38 am
-
-
Find the version of a cobol program through its load module
by vinigim » Fri Oct 30, 2020 3:16 am » in IBM Cobol - 5
- 5126
-
by chaat
View the latest post
Sat Nov 07, 2020 8:40 am
-