View previous topic :: View next topic
|
Author |
Message |
neelesht
New User
Joined: 24 Jul 2006 Posts: 99 Location: Los Angeles
|
|
|
|
Hi All,
When I try to open a cursor I get -301 SQL Code.
I checked and the data types of the variables are correct.
Could you please let me know what could be the issue and what could be the resolution ?
Thanks
-Neelesh |
|
Back to top |
|
|
Rajesh S Warnings : 1 New User
Joined: 11 Jul 2007 Posts: 54 Location: Chennai
|
|
|
|
Hai,
I think error in your table variables position. The input host variables in the SQLDA entry number indicate by position numbers.
Are you working in COBOL or PL/1?
Regards
Rajesh S |
|
Back to top |
|
|
neelesht
New User
Joined: 24 Jul 2006 Posts: 99 Location: Los Angeles
|
|
|
|
Hi rajesh,
Thanks
I am working on COBOL.
Thanks
-Neelesh |
|
Back to top |
|
|
Rajesh S Warnings : 1 New User
Joined: 11 Jul 2007 Posts: 54 Location: Chennai
|
|
|
|
Hai Neelesh,
I'm not able to guess. From where you getting this error. With out known your codings....
Try to explain clearly |
|
Back to top |
|
|
Suryanarayana.tadala
New User
Joined: 03 Nov 2005 Posts: 43 Location: St.Louis
|
|
|
|
Could you please post the cursor and the scenario under which you are using this cursor.
Thanks |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
The only variables at issue with the OPEN CURSOR statement are in the WHERE clause of the DECLARE CURSOR.
The host receiving variables are in the FETCH CURSOR statement, which has not been executed, and not in the DECLARE CURSOR statement.
So, find the host variables and/or literals in the WHERE clause are not correct - datatype, usage, etc... |
|
Back to top |
|
|
|