Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

When i m trying to bind the program its said unsuccess

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
dipanshu

New User


Joined: 16 Jan 2006
Posts: 53
Location: pune

PostPosted: Wed Mar 01, 2006 6:58 pm    Post subject: When i m trying to bind the program its said unsuccess
Reply with quote

EXEC SQL DECLARE PPCH_CURSOR CURSOR FOR
SELECT PPCH_DESIG_DLAS
,PPCH_PLANT_MKR
,PPCH_CHANGE_TYPE
FROM PACS_PLANT_CHANGES
ORDER BY PPCH_DESIG_DLAS , PPCH_PLANT_MKR
END-EXEC.

When i m trying to bind the above program its said unsuccessfull.

But again when i commented the order by clause its working fine

Could any one suggest what may be the probable reason?
Back to top
View user's profile Send private message

dipanshu

New User


Joined: 16 Jan 2006
Posts: 53
Location: pune

PostPosted: Thu Mar 02, 2006 9:45 am    Post subject:
Reply with quote

Problem getting wlile running the db2-cobol batch program, sqlcode is -818.

THE PRECOMPILER GENERATED TIMESTAMP x IN THE LOAD MODULE IS DIFFERENT FROM THE BIND TIMESTAMP y BUILT FROM THE DBRM z

what to do ?
Back to top
View user's profile Send private message
ragshere

New User


Joined: 20 Dec 2004
Posts: 70

PostPosted: Thu Mar 02, 2006 10:08 am    Post subject: Re: When i m trying to bind the program its said unsuccess
Reply with quote

Hi,

The SQL precompiler places timestamp 'y' in the DBRM, and time stamp 'x' in the parameter list in the application program for each SQL statement. At BIND time, DB2 stores the DBRM timestamp for run time use. At run time, timestamp 'x', for the SQL statement being processed,is compared with timestamp 'y' derived from the DBRM 'z' at BIND time.
If the two timestamps do not match, the DBRM and the application program were not the result of the same precompile. This problem can occur if you:
* Precompile, compile, and link, without doing a BIND of the application, * Precompile and BIND, without doing the compile and link for the application program, or
* BIND the application using a DBRM that resulted from a different precompile of the application program than that which produced the object module that is linked into the application module. The timestamps 'x' and 'y' are DB2 internal timestamps. They do not have an external interpretation.

BIND the application again, using the DBRM for the application program that matches the object module.


Thanks
Rags
Back to top
View user's profile Send private message
prakash271082

New User


Joined: 09 Sep 2005
Posts: 53

PostPosted: Thu Mar 02, 2006 11:42 am    Post subject: Re: When i m trying to bind the program its said unsuccess
Reply with quote

Hi,
As said clearly by our friend, -818 error is due to Timestamp Mismatch between the load module and the DBRM -plan / package.
One better note is that you could make use of LEVEL parameter in your BIND Jcl to get rid of -818. Please check with your admin too for the usage of LEVEL parameter, whether it has any impacts.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us