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 the use of db2?
What does a deadlock mean in DB2?
Is db2 a mainframe?
What is the difference between "db2ilist" and "db2 get instance" commands in DB2 Database Server?
Mention the definition of cobol in varchar field.
What is a trigger in the db2 database?
What is the physical storage length of date data type?
How to retrieve rows from a db2 table in embedded sql?
What is the connection string to connect to the DB2 Database ?
What is dclgen in db2?
What are packages in db2?
What is package in db2 mainframe?
What is difference between alias and synonym in db2?
What is dbrm? When it will be created?
What is the use of db2 optimizer?