Page 1 of 1

C/C++ Program accessing Java in z/OS - Run time Abend S0C4

PostPosted: Wed Jun 11, 2014 1:32 pm
by Renjith
I have a C/C++ Program calling Java in z/OS. The compile and link edit steps of C/C++ program calling Java ran fine. The run JCL fails with S0C4 abend. The error message is listed below.

This program is accessing storage in USS memory from MVS memory. It looks like Storage access issue.

ABEND=S0C4 U0000 REASON=00000004

The Run JCL is mentioned below. Please let me know what is missing and how to resolve this S0C4 abend.

//STEP1 EXEC PGM=JAVAC
//STEPLIB DD DSN=LOAD.LIB.DSNAME,DISP=SHR
// DD DSN=CEE.SCEERUN,DISP=SHR
// DD DSN=CEE.SCEERUN2,DISP=SHR
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSTERM DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//CEEOPTS DD *
ENVAR("_CEE_ENVFILE=/usr/UXXXXX/env1")
POSIX(ON),XPLINK(ON)
/*

Re: C/C++ Program accessing Java in z/OS - Run time Abend S0

PostPosted: Thu Jun 12, 2014 12:43 am
by Robert Sample
Consult your site support group. Only they -- or someone else working at your site -- could possibly help you. The default memory allocation might be too small, or there could be other problems, but only by looking at the job / output / environment could someone determine this.