Answer Posted / yuvaevergreen
IN DCLGEN,
>>"INDICATOR VARS .. ===> NO" indicates the presence of
null variables for the fields in the tables.
>>indicator variable should be declared of type s9(4) comp.
77 DAY-IND PIC S9(4) BINARY.
Move -1 to the indicator variable and use in sql.
exec sql
insert into employee(name)
values(:ws-name:ws-name-ind)
end-exec;
ws-name-ind is the indicator variable which inserts null in
the field ws-name.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
List out the three types of page locks that can be held.
My sql statement select avg(salary) from emp yields inaccurate results. Why?
Highlight all the advantages that are attached to a package.
What action db2 takes when a program aborts in the middle of a transaction?
What is a plan and package in db2?
What are the full forms of spufi and dclgen and why are they used?
Mention data types used in db2 ?
What is bind and rebind in db2?
How can deadlocks be resolved?
Is the primary key a clustered index?
How do you concatenate the firstname and lastname from emp table to give a complete name?
How do I change the column size in db2?
Which is faster delete or truncate?
What is dbrm library?
What is db2? Explain.