Answer Posted / sriram
EXEC-SQL
SELECT 1
INTO :X
FROM TAB1
END-EXEC
X is defined as s9(4) comp value zeroes
So, if there is a row in the table (i.e. the table is not
empty), 1 gets moved to variable X.
Did not have resources to run the query and validate ,
Please let me know if I am wrong
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is runstats utility in db2?
What type of database is db2?
How can the firstname and the lastname from the emp table be concatenated to generate complete names?
What is the syntax for creating a table in the db2 database?
what are bind concepts in db2 cobol?
Which isolation level provides highest data integrity?
What is meant by dclgen?
What is db2 optimizer?
B37 abend during spufi?
How do you stop a db2 database in linux?
Name the lockable units in DB2?
What is dbrm?
What types of tables are there in the db2 database?
File not opened because library is *PROD and debug is UPDPROD(*NO). ? what may be the reason? how to solve it..?
What is null indicator in cobol db2?