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

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  


What is the connection string to connect to the DB2 Database ?

0 Answers   MCN Solutions,


When do you specify the isolation level?

0 Answers  


Update command

1 Answers  


What is the picture clause of the null indicator variable?

6 Answers  






Mention the location where the output received from explain statement is stored.

0 Answers  


What is a system catalog table in db2?

0 Answers  


What is load utility in db2?

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 dbrm library?

0 Answers  


what is consistency token

3 Answers  


What are delete-connected tables?

1 Answers  


Categories