How to define the data items to receive the fetch items for
the SQL?
Answers were Sorted based on User's Feedback
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 |
Answer / sadiq afroze
Using the DSECT, followed by lines of - 'data items DS
datatype'.
Is This Answer Correct ? | 0 Yes | 2 No |
What is the STOSPACE Utility used for?
if one db2 pgm calls another db2 pgm. how many plans do we need. what r the steps involved..
How will you delete duplicate records from a table?
1. what if null values retrived from database and no null indicator mentioned in query. What is sql code.
Can you use max on a char column?
In SPUFI suppose you want to select maximum of 1000 rows, but the select returns only 200 rows. What are the 2 SQLCODEs that are returned?
What is a view? Why use it?
Hi Everyone... Under the Logical files, when am working on multiple rec format logical file, I have joined two pf's using the multiple record format logical file concept, but when i run queried the LF only the first mentioned pf records are reflecting and I am not able to see any of the field records specified under the second pf. Kindly let me know whats the reason behind this. Below is the str of LF., R rec PFILE(LOGICAA) CUSTNO CUSTNAME BILL K CUSTNO R rec1 PFILE(LOGICAA1) CUSTNO ADD K CUSTNO .....
What is REORG? When is it used?
Write a query to extract first 5 characters of a name in the column Stud_Name?
What is the reason behind not using select * in embedded sql programs?
What is the significance of the CURSOR WITH HOLD clause in a cursor declaration?