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

Error BINDing DB2 Program in Batch Using IKJEFT01


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bkjanes

New User


Joined: 14 Sep 2007
Posts: 4
Location: Alabama Dept of Transportation

PostPosted: Fri Aug 15, 2008 3:04 am
Reply with quote

I'm working on a new processor to precompile, compile, link and BIND a COBOL/DB2 program using a modified verion of the GCIIDBL processor that came with the Endevor installation files. There is a step to BIND in the foreground using BC1PTMP0, which works fine, and a step to BIND in the background (batch) using IKJEFT01. My problem is that when I submit a batch ADD or GENERATE, the BIND step running IKJEFT01 always gets a RC=0012, even though the output shows a successful BIND.

Any idea why IKJEFT01 would give a RC=0012 when the BIND seemed to perform successfully? I've combed through the output and haven't found any clues; I'm at a loss.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Aug 15, 2008 11:21 am
Reply with quote

I would start with the IKJEFT01 RC=0012.
I think that has more to do with a failure of proper jcl for the IKJEF step.
I believe you have to use IKJEF b or a or something to return the return code for the application being executed under the terminal emulator (IKJEF).

That is why I think the rc=0012 has nothing to do with the bind process.
Back to top
View user's profile Send private message
bkjanes

New User


Joined: 14 Sep 2007
Posts: 4
Location: Alabama Dept of Transportation

PostPosted: Fri Aug 15, 2008 9:18 pm
Reply with quote

I've tried using IKJEFT1B instead of IKJEFT01, but I get the same result; the BIND output says "SUCCESSFUL BIND", but the step gets a return code 0012.

I agree with you that the return code probably has nothing to do with the BIND itself. I think it has more to do with it running in an Endevor batch process. I'm just at a loss as to how to resolve it.
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
Search our Forums:

Back to Top