Page 1 of 3

Compile JCL for COBOL error

PostPosted: Wed Nov 28, 2012 10:47 pm
by TheSilverFox
Alright,

I am trying to compile a COBOL program i have but when i submit this JCL...it asks me for a JOB Character and when i enter 'B'...it submits but then i can a JCL Error. Thoughts?

//USERB JOB(USER), CLASS=W,               
// MSGCLASS=X,REGION=0M,NOTIFY=USER                         
//COMPILE  EXEC PGM=IGYWC,REGION=1024K                         
//SYSIN    DD   *                                               
    IDENTIFICATION DIVISION (CSQ4BVP1)                         
.                                                               
.                                                               
.                                                               
/*                                                             
//           

Re: Compile JCL for COBOL error

PostPosted: Wed Nov 28, 2012 11:21 pm
by BillyBoyo
I think you should look at the output to see what the error is. If that doesn't clear it up, paste the output here, in the Code tags as you have already. thanks.

Re: Compile JCL for COBOL error

PostPosted: Wed Nov 28, 2012 11:48 pm
by Akatsukami
The accounting information is misaligned, which may be the cause of your error. Insert a space after JOB, and remove the one before CLASS.

Re: Compile JCL for COBOL error

PostPosted: Thu Nov 29, 2012 1:08 am
by TheSilverFox
That fixed that error. But I get this output now:

CSV003I REQUESTED MODULE IGYWC    NOT FOUND                               
 CSV028I ABEND806-04  JOBNAME=USER STEPNAME=COMPILE                   
IEA995I SYMPTOM DUMP OUTPUT                                                   
SYSTEM COMPLETION CODE=806  REASON CODE=00000004                               
 TIME=14.08.07  SEQ=28125  CPU=0000  ASID=025F                                 
 PSW AT TIME OF ERROR  070C1000   813D6A0E  ILC 2  INTC 0D                     
   NO ACTIVE MODULE FOUND                                                     
   NAME=UNKNOWN                                                               
   DATA AT PSW  013D6A08 - 8400181E  0A0D18FB  180C181D                       
   AR/GR 0: 9E3ED47A/00001F00   1: 00000000/84806000                           
         2: 00000000/00000000   3: 00000000/00000000                           
         4: 00000000/00000000   5: 00000000/008FF400                           
         6: 00000000/000000FF   7: 00000000/00000000                           
         8: 00000000/008D5150   9: 00000000/013D6F10                           
         A: 00000000/00000000   B: 00000000/00000000                           
         C: 00000000/00000000   D: 00000000/008D5150                           
         E: 00000000/84806000   F: 00000000/00000004                           
 END OF SYMPTOM DUMP                                                           
IEF472I USERB COMPILE - COMPLETION CODE - SYSTEM=806 USER=0000 REASON=000000
IEF285I   USER.USERB.J0101041.D0000101.?         SYSIN     

Re: Compile JCL for COBOL error

PostPosted: Thu Nov 29, 2012 1:14 am
by NicC
IGYWC is a JCL procedure not a program. You should have either
//PROCSTEP EXEC IGYWC ...

or
//PROCSTEP EXEC PROC=IGYWC  ...

not that I have ever used the second format so doube check in the JCL manual.

Re: Compile JCL for COBOL error

PostPosted: Thu Nov 29, 2012 9:47 pm
by Ed Goodman
Dude, take ANY other working job and start with that. Are you the first person to ever compile a program where you are?

Re: Compile JCL for COBOL error

PostPosted: Fri Nov 30, 2012 10:18 pm
by TheSilverFox
Thank you all. That helped.

Re: Compile JCL for COBOL error

PostPosted: Sat Dec 01, 2012 1:57 am
by TheSilverFox
To the above poster before me, the other got other tasks so they're tied up. I got that part working but now i'm trying to execute the program but it can't find it.

I created a PDS for my load library and trying to run the program HELLO

//USERB JOB (USER),'COBOL PROGRAM',CLASS=W,               
// MSGCLASS=X,REGION=0M,NOTIFY=USER                         
//******************************************************       
//PGM   EXEC PGM=HELLOW,REGION=1024K                         
//STEPLIB  DD   DSN=USER.LOAD,DISP=SHR                   
//SYSPRINT DD   SYSOUT=*                                       
//SYSOUT   DD   SYSOUT=*                                       
//SYSDBOUT DD   SYSOUT=*                                       
//SYSIN    DD   DSN=USER.COBOL.PGM,DISP=SHR             
/*                           


HELLOW is the program ID i have for the COBOL but mainframe can't seem to find that program eventho i thought i compile and linked it which i got no errors for. USER.LOAD is the load library i created that i linked the COBOL program to. USER.COBOL.PGM is the COBOL program itself.

Any other suggestions?

Re: Compile JCL for COBOL error

PostPosted: Sat Dec 01, 2012 2:07 am
by Akatsukami
Please show us your link JCL (I presume that your compile JCL is what your showed in your first post with the errors corrected) and the messages generated by the linkage editor.

Re: Compile JCL for COBOL error

PostPosted: Sat Dec 01, 2012 2:18 am
by dick scherrer
Hello,

I suspect the code did not compile and/or link successfully or that you are trying to execute it from other than the library where it was linked.

As requested, show the successful compile/link and target library. Also show the failed run.