wht steps we need will coding cobol and db2 pgm ?

Answer Posted / yuvaevergreen

step1>>put all the sql statements in cobol program inside
exec sql and end-exec.Because precompiler identifies using
sql using these keywords.
step2>>all sql statements should be within 12th and 72th
column in program.
step3>>Include the dclgen if created or use the host
variable declaration name and sqlca.
step4>>precompile,compile,bind,linkedit and execute.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we insert update delete in view?

571


List down the data types in the db2 database.

630


What is with ur in db2?

751


List out the three types of page locks that can be held.

681


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

622






What are the prerogatives?

612


have 3 tables table1, table2 and table3 which contains employee information. table1 is master table, table2 contains emp details like emp no and so on, table 3 contains emp salary. so if any emp leave company between 25th - 30th of every month it has to get updated in tables. but it is not getting updated. What is the reason.

1232


What is a cursor in programming?

589


What is the difference between spufi and qmf?

633


What's The Percentage Free Space ?

764


Are views updateable?

638


What is the role of schema in the db2 database?

649


What is an instance in db2?

561


How do I change the column size in db2?

585


How to connect to db2 database from windows command line?

560