wht steps we need will coding cobol and db2 pgm ?
Answer Posted / jujubi
when you start coding any DB2 pgms you should include SQLCA
and DCLGEN member in w-s section and perform activities of
coding which need to be processed in procedure division.
all statements should be scoped in EXEC SQL and END-EXEC
scope
only and you should precompile, create package and plan, you
should run this pgm by using plan. these are the steps we
follow these days.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is ibm db2 free?
Is schema the same as database?
On which levels locks can be applied?
What is cursor in dbms?
What is the physical storage length of time data type?
What is access path in db2?
How is the value function used?
What is the syntax for seeing the columns and data types of a table in the db2 database?
What is null in db2?
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 bind in db2?
Is it possible to alter a table – for example adding a column, when another user is accessing or updating some columns?
How does cobol compile db2 program?
What is package in db2 mainframe?
What is page size in db2?