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

-818 while opening a cursor


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Bharath Bhat

Active User


Joined: 20 Mar 2008
Posts: 283
Location: chennai

PostPosted: Tue Apr 08, 2008 9:11 pm
Reply with quote

Hi,

I am getting a -818 error while opening a cursor. I have used
Code:
ROWSET
parameter in the cursor declaration. Please help me solve this.

Code:
DECLARE TAB1_CSR CURSOR
                        WITH ROWSET POSITIONING FOR
                        SELECT A.ATTR1
                                    ,A.ATTR2
                                    ,A.ATTR3
                         FROM TABLE1 A
                                  ,TABLE2 B
                                  ,TABLE3 C
                       WHERE  C.COL1=:VAR1 AND
                                   C.COL2=:VAR2 AND
                                   B.COL3=:VAR3
 
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Apr 08, 2008 9:21 pm
Reply with quote

Hello,

Look at the description of the -818
THE PRECOMPILER-GENERATED TIMESTAMP x IN THE LOAD MODULE IS DIFFERENT FROM THE BIND TIMESTAMP y BUILT FROM THE DBRM z
Back to top
View user's profile Send private message
sri_mf

Active User


Joined: 31 Aug 2006
Posts: 218
Location: India

PostPosted: Wed Apr 09, 2008 1:01 pm
Reply with quote

Bind the program and then execute it.

When ever u make any changes to tehe COBOL-DB2 Program u have to Bind it first and then Run it.

Correct me if i am wrong.
Back to top
View user's profile Send private message
Bharath Bhat

Active User


Joined: 20 Mar 2008
Posts: 283
Location: chennai

PostPosted: Wed Apr 09, 2008 3:03 pm
Reply with quote

Thanks very much guys, I resolved it.
Quote:
When ever u make any changes to tehe COBOL-DB2 Program u have to Bind it first and then Run it.

I bound it everytime I made changes. But the changes were not getting reflected since it was a subroutine. I had to compile the program which is calling this subroutine everytime I made changes. I wanted to know if there are other possibilities which give a -818.
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts DB2 for z/OS and LUW Admin Job Opening Mainframe Jobs 0
No new posts Looking For a PDS Member Without Open... PL/I & Assembler 10
No new posts Vision PLUS Mainframe opening Mainframe Jobs 0
No new posts Urgent MF opening for TCS India Mainframe Jobs 0
No new posts Is SQLCODE -811 possible while fetchi... DB2 1
Search our Forums:

Back to Top