How to define the data items to receive the fetch items for
the SQL?

Answers were Sorted based on User's Feedback



How to define the data items to receive the fetch items for the SQL?..

Answer / mehdee

Example:
EXEC SQL
FETCH AA_CURS
INTO :Host-name1, Host-name2, ...
EXEC-END

Note: Host-names listed are one to one related to the
Columns at DECLARE AA_CURS, and are INCLUDEed from it's
DB2 DECLGEN name in the program.

Is This Answer Correct ?    2 Yes 0 No

How to define the data items to receive the fetch items for the SQL?..

Answer / sadiq afroze

Using the DSECT, followed by lines of - 'data items DS
datatype'.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More DB2 Interview Questions

what is consistency token

3 Answers  


When do you specify the isolation level?

0 Answers  


How can you find out which query is taking lot of time to execute in cobol-db2 program ?

1 Answers   Danske,


what is copy pending and check pending ?

1 Answers   Xansa,


define clustering index.

0 Answers  






What is cobol db2?

0 Answers  


One program calling 5 subprograms, its a cobol db2 program, after precompilation how many plans and packages will created?

3 Answers  


What is the difference between Where and Having Clause

7 Answers   IBM, iFlex,


Can you search give an array in the WHERE clause of a db2 query?

1 Answers  


what is the use of bind parameter, Replace?

5 Answers   IBM,


Define predicate?

0 Answers  


How can you classify the locks in db2?

0 Answers  


Categories