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
 

 

-818 while opening a cursor

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: -818 while opening a cursor
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

Site Director


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

PostPosted: Tue Apr 08, 2008 9:21 pm    Post subject:
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: 216
Location: India

PostPosted: Wed Apr 09, 2008 1:01 pm    Post subject: Reply to: -818 while opening a cursor
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    Post subject: Reply to: -818 while opening a cursor
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    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 Testing rerad cursor for status with ... John F Dutcher DB2 8 Fri May 19, 2017 9:35 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
This topic is locked: you cannot edit posts or make replies. Mainframe Opening in Allianz India- T... Rajesh Gopinathan Mainframe Jobs 0 Wed Apr 19, 2017 11:33 am
No new posts Getting -504 Cursor Name GTT-ARTS-CUR... Robin Sulsona DB2 2 Fri Mar 17, 2017 1:43 am
No new posts Release of Adabas Cursor mohitsethi All Other Mainframe Topics 1 Mon Feb 06, 2017 8:36 pm


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