IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

IEF142I and Cond. Code 12


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
I?aki Viggers

New User


Joined: 18 Jun 2005
Posts: 13

PostPosted: Sun May 15, 2022 12:20 am
Reply with quote

Hi,
I keep getting

Code:
IEF237I DMY  ALLOCATED TO SYSPUNCH
IEF237I JES2 ALLOCATED TO SYSIN
IEF237I 148  ALLOCATED TO SYSLIB
IEF142I HELOWRLD COB HELOEXEC - STEP WAS EXECUTED - COND CODE 0012


when I submit on Hercules/TK4 the following:
Code:
000001 //HELOWRLD JOB (COBOL),'HI',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1)
000002 //HELOEXEC EXEC COBUCG
000003 //COB.SYSPUNCH DD DUMMY
000004 //COB.SYSIN DD *
000005         IDENTIFICATION DIVISION.
000006         PROGRAM-ID. FIRSTPGM.
000007         PROCEDURE DIVISION.
000008             DISPLAY 'HELLO WORLD'.
000009             STOP RUN.
000010 /*
000011 //COB.SYSLIB DD DSNAME=SYS1.COBLIB,DISP=SHR
000012 //GO.SYSOUT DD SYSOUT=*
000013 //                                                           


What am I missing?

I copied/simplified the JCL statements from an example included in the TK4 installation (SYS2.JCLLIB(PRIMCOB1), if it matters). Somewhere in the log it says that program IKFCBL00 gives the Return Code 12. Other than that, I don't know what other information I need to provide.
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2024
Location: USA

PostPosted: Sun May 15, 2022 3:51 am
Reply with quote

I?aki Viggers wrote:

Code:
IEF142I HELOWRLD COB HELOEXEC - STEP WAS EXECUTED - COND CODE 0012


Code:
000001 //HELOWRLD JOB (COBOL),'HI',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1)
000002 //HELOEXEC EXEC COBUCG
000003 //COB.SYSPUNCH DD DUMMY
000004 //COB.SYSIN DD *
000005         IDENTIFICATION DIVISION.
000006         PROGRAM-ID. FIRSTPGM.
000007         PROCEDURE DIVISION.
000008             DISPLAY 'HELLO WORLD'.
000009             STOP RUN.
000010 /*
000011 //COB.SYSLIB DD DSNAME=SYS1.COBLIB,DISP=SHR
000012 //GO.SYSOUT DD SYSOUT=*
000013 //                                                           


What am I missing?

The message IEF142I is produced after the step COB of your JCL procedure named COBUCG. This step is running the IBM COBOL compiler module, which has ended with RC=12. This code typically means that COBOL compiler did not finish successfully, due to one or more of thousands of possible reasons.
The detailed report (listing) on compilation issues is placed to the output location defined via //SYSPRINT DD statement of //COB EXEC step.
You need to find this compiler output, investigate it carefully, detect and understand all those specific error messages causing the COBOL compiler to stop with RC=12.
Back to top
View user's profile Send private message
I?aki Viggers

New User


Joined: 18 Jun 2005
Posts: 13

PostPosted: Sun May 15, 2022 5:54 am
Reply with quote

Thanks, but inserting
Code:
//SYSPRINT DD SYSOUT=*
right after line (or card) 11 made no difference in the output. In other words, it is not generating any additional output that points to the reason(s) for failure.
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2024
Location: USA

PostPosted: Sun May 15, 2022 6:03 am
Reply with quote

I?aki Viggers wrote:
Thanks, but inserting
Code:
//SYSPRINT DD SYSOUT=*
right after line (or card) 11 made no difference in the output. In other words, it is not generating any additional output that points to the reason(s) for failure.


It is not possible. COBOL compiler always produces the full compilation listing, in case it's SYSPRINT is defined correctly. At least it does so since the beginning of 1960s, with no gaps in time.

Either you must investigate your output more carefully, or present here your full SDSF output.

There is no way of guessing.

P.S.
I'm 100% sure that //SYSPRINT DD has been defined somehow within the JCL procedure COBOLCG.
You need either to verify your SDSF log in full (with the expanded procedure COBOLCG), or present this full SDSF log to the forum.

Otherwise there is no subject to discuss further.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
Search our Forums:

Back to Top