View previous topic :: View next topic
|
Author |
Message |
yoonuskv
New User
Joined: 07 Apr 2006 Posts: 3
|
|
|
|
I am trying to run a simple c program using catalogued procedure EDCCLG
here is the jcl
Code: |
//A398614A JOB (P944,#711235),'C/C++ - COMPILE',
// CLASS=R,MSGCLASS=X,NOTIFY=&SYSUID,
// USER=A398614,PASSWORD=
//*
//*-----------------------------------------------------
//* COMPILE THE C SOURCE.
//*-----------------------------------------------------
//*
//C0010308 EXEC EDCCLG,
// INFILE='A398614.TEST.PROG(CPROG)',
// OUTFILE='A398614.LOAD(CPROG)',
//* CPARM='OPT(0) NOSEQ NOMAR RENT',
// GPARM='STACK(10K)/'
//* SYSOUT6='*'
//LKED.SYSLMOD DD DSNAME=A398614.LOAD(CPROG),DISP=SHR
//COMPILE.USERLIB DD DSNAME=SYS1.CEE.SCEEH.H,DISP=SHR
|
The compilation and link edit is success but the execution is failing.
its abending witha soc7 .
Its a simple c program with a printf statement.
DO i need anything extra to the jcl?
Has anybody tried it out? |
|
Back to top |
|
|
martin9
Active User
Joined: 01 Mar 2006 Posts: 290 Location: Basel, Switzerland
|
|
|
|
hy yoonuskv,
you know, s0c7 is a data exception,
this you have to solve in your program yourself,
this is a run time abend.
if you would have any s0c4, i.e. storage protection,
or something similar....
look at the variable which contains the faulty data...
martin9 |
|
Back to top |
|
|
yoonuskv
New User
Joined: 07 Apr 2006 Posts: 3
|
|
|
|
Thank You martin for ur reply
but i would like to point out that there is nothing much in the program
here is the program
#include"stdio.h"
MAIN() {
printf("hi") }
So i doubt this error is coming becoz of something ese |
|
Back to top |
|
|
yoonuskv
New User
Joined: 07 Apr 2006 Posts: 3
|
|
|
|
Hi martin
i would like to add one more thing
i left out the ; in the program
but still it is giving the same error.
can u help me out pls |
|
Back to top |
|
|
|