My cobol program(not having any sql statements) is calling
another cobol program ( having sql statements), what is
needed for compilation and run in jcls .

Answer Posted / santy

Hi,

Lets consider the name the calling prg. as PROG1 and
called prg. as PROG2, Pgm PROG1 should be compiled as a
normal CBL pgm, and Pgm. PROG2 should be compiled as a
CoBoL-DB2 pgm. And the Run JCL should call the PGM PROG1,
using IKJEFT01 pgm, since it calls pgm PROG2 with SQL
statements. For the JCL u can refer to the JCLS link in the
same website

Is This Answer Correct ?    11 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I have a subprogram B calling from mainprogram A.I have opened a cursor in A ,Can i fetch the same cursor in subprogram B , If yes , Please explain the reason?

1940


Mention a credible reason why select* is never given preference in an sql program that has been embedded.

726


Mention the downsides of page level lock.

715


What is the result of open cursor statement?

640


What is consistency token in db2?

648






What is the clustering index in the db2 database?

588


What is the difference between nvl and coalesce?

607


Which isolation level provides highest data integrity?

601


How to execute stored procedure in db2 command editor?

533


Explain about cursor stability?

629


How can you classify the locks in db2?

636


What is a db2 tablespace?

604


What is the advantage in De-normalizing tables in DB2?

752


What is the maximum size of a char data type in db2?

589


What does db2 mean?

589