How to resolve -504 sql code in DB2?

Answers were Sorted based on User's Feedback



How to resolve -504 sql code in DB2?..

Answer / kk

Hi,
-504 is cursor not declared error.may be cursor name
misspeled also coming this error.

Is This Answer Correct ?    17 Yes 0 No

How to resolve -504 sql code in DB2?..

Answer / anandrao

There are following possibilities to this issue to come,
1) Cursor is not declared in application program or
in stored procedure depending on where it is used.
Soln - Declare the cursor in application
program or in stored procedure depending on where it is
used.
2) Cursor spelling is not correct which you are
going to open or fetch.
Soln - Check the name used and correct.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More DB2 Interview Questions

What is a DBRM, PLAN ?

3 Answers  


What is the physical storage length of date data type?

0 Answers  


How many clustering indexes can be defined for a table?

2 Answers  


What is a SELECT statement?

1 Answers  


How do you select a row using indexes in db2?

0 Answers  


Normalization in DB2 – first normal form, second normal form

4 Answers   Virtusa,


WHAT IS NULL INDICATOR ? WERE IS THIS USED? AND IF IT IS USED IN FILES CONCEPT? HOW DO WE USE IT?

2 Answers   IBM,


What are the 4 environments which can access DB2 ?

2 Answers  


If we keep the DCLGEN structure for a table in a copybook and include it in the COBOL program using the COPY statement, will there be any impact during compilation or at any stage of program execution?

2 Answers  


Can we update view in db2?

0 Answers  


Bind concepts in DB2 cobol

10 Answers   IBM, TCS, TRD, Virtusa,


If I have a view which is a join of two or more tables, can this view be updatable?

3 Answers  


Categories