Answer Posted / harsha
Working-Storage Section.
01 WS-FIELD.
49 WS-FIELD-TEXT PIC X(40).
49 WS-FIELD-LEN PIC S9(4) COMP.
PROCEDURE DIVISION.
MOVE +45 TO WS-FIELD-LEN.
MOVE 'UPDATE TAB1
SET ----=:----- WHERE ---=:----'
TO WS-FIELD-TEXT.
EXEC-SQL
EXECUTE IMMEDIATE:WS-FIELD
END-EXEC.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is cloudant database?
What does db2 mean?
Mention the different locking levels that are available in db2.
How do I create a view in db2?
How to find the maximum value in a column in the db2 database?
Can we insert update delete in view?
What's The Error Code For Unique Index Voilation?
Name the lockable units in DB2?
What is the maximum number of columns in a db2 table?
SET is the ANSI standard for variable assignment, SELECT is not. SET can only assign one variable at a time, SELECT can make multiple assignments at once. If assigning from a query, SET can only assign a scalar value. If the query returns multiple values/rows then SET will raise an error. SELECT will assign one of the values to the variable and hide the fact that multiple values were returned (so you'd likely never know why something was going wrong elsewhere - have fun troubleshooting that one) When assigning from a query if there is no value returned then SET will assign NULL, where SELECT will not make the assignment at all (so the variable will not be changed from it's previous value) As far as speed differences - there are no direct differences between SET and SELECT. However SELECT's ability to make multiple assignments in one shot does give it a slight speed advantage over SET.
What is db2 bind process?
Give the name of some fields form sqlca.
What is host variable?
Is db2 relational database?
Define buffer pool.