wht r the requirements for writing a cobol-db2 pgm ?

Answer Posted / tej

1. Declare the table structure you wanted to access in
working storage section or linkage section.(Can use DCLGEN
here).
2.Declare host variables in Working storage section.(if
DCLGEN used no need of declaring these host variables
separately).
3.Include SQLCA.
3.Now you can add the embedded SQL statements to your program.

Please add if i missed any other info..

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to create an Instance in DB2 using DB2 Control Center ?

631


Where can you declare a cursor in a cobol-db2 program?

604


What are catalog tables in db2?

607


What is bind plan?

611


What is ibm db2 connect?

573






What is db2 bind?

640


What is role in db2?

620


Define sqlca.

649


What is a db2 schema?

764


What is the difference between nvl and coalesce?

602


What are the prerogatives?

617


What is the picture clause of null indicator variable?

692


Can we update view in db2?

562


What is the result of open cursor statement?

638


what is the sqlcode -501

11308