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 a view? Why use it?
How to resolve -504 sql code in DB2?
How can you validate Sql errors during cursor operation in db2 pgms and where do you code?
What is schema in db2?
What is db2 and what is the use of db2 optimizer?
What is a clustering index?
When the like statement is used?
What is sqlca?
Could you please let me no the query for below I have table name xyx under this there is column name called employee name which starts from 100th column ends 120th column,now i want to replace only column from 101 to 104 which contains ABCS to replace with PQRS for all records which comes beetween 101 to 104 ..how to write query for this..
Suppose if I need to update a column, how you do that using cursor?
If the main program has only cobol statements and subprogram has the db2 statements what is the procedure for precompilation. for which program we need to do the precompilation
what is Runstats? Whem will u choose to runatats?