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
This topic is locked: you cannot edit posts or make replies. Natural ADABAS Opening with CTS enikhilk Mainframe Jobs 0 Wed Nov 30, 2016 5:37 pm
No new posts Updating Cursor row withour using FOR... chandan.inst DB2 15 Tue Nov 08, 2016 11:17 am
This topic is locked: you cannot edit posts or make replies. Job Opening for 3 to 10 yrs exp. in I... princeaggarwal Mainframe Jobs 0 Sat Aug 20, 2016 3:17 pm
No new posts PL/I: opening file w/ dynamically det... Sam Dodgers PL/I & Assembler 6 Wed Jul 27, 2016 4:05 pm
No new posts Variable for cursor names ravikumar15 DB2 5 Sun Jul 17, 2016 7:08 am


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