Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 215
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 -502 Error - Cursor already open anand jeyapaul DB2 7 Sun Oct 29, 2017 4:22 am
No new posts Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Mainframe Opening in Chennai ( 2 to 4... muralikrishnan_new Mainframe Jobs 0 Tue Jul 18, 2017 2:20 pm
No new posts Testing rerad cursor for status with ... John F Dutcher DB2 8 Fri May 19, 2017 9:35 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us