Compile JCL for COBOL error



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Compile JCL for COBOL error

Postby TheSilverFox » Wed Nov 28, 2012 10:47 pm

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)                         
.                                                               
.                                                               
.                                                               
/*                                                             
//           
TheSilverFox
 
Posts: 12
Joined: Wed Nov 28, 2012 10:42 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Compile JCL for COBOL error

Postby BillyBoyo » Wed Nov 28, 2012 11:21 pm

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.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: Compile JCL for COBOL error

Postby Akatsukami » Wed Nov 28, 2012 11:48 pm

The accounting information is misaligned, which may be the cause of your error. Insert a space after JOB, and remove the one before CLASS.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: Compile JCL for COBOL error

Postby TheSilverFox » Thu Nov 29, 2012 1:08 am

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     
TheSilverFox
 
Posts: 12
Joined: Wed Nov 28, 2012 10:42 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Compile JCL for COBOL error

Postby NicC » Thu Nov 29, 2012 1:14 am

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Compile JCL for COBOL error

Postby Ed Goodman » Thu Nov 29, 2012 9:47 pm

Dude, take ANY other working job and start with that. Are you the first person to ever compile a program where you are?
Ed Goodman
 
Posts: 341
Joined: Thu Feb 24, 2011 12:05 am
Has thanked: 3 times
Been thanked: 17 times

Re: Compile JCL for COBOL error

Postby TheSilverFox » Fri Nov 30, 2012 10:18 pm

Thank you all. That helped.
TheSilverFox
 
Posts: 12
Joined: Wed Nov 28, 2012 10:42 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Compile JCL for COBOL error

Postby TheSilverFox » Sat Dec 01, 2012 1:57 am

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?
TheSilverFox
 
Posts: 12
Joined: Wed Nov 28, 2012 10:42 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Compile JCL for COBOL error

Postby Akatsukami » Sat Dec 01, 2012 2:07 am

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.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: Compile JCL for COBOL error

Postby dick scherrer » Sat Dec 01, 2012 2:18 am

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.
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

Next

Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post