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

How to find schema of a table in db2?

752


Is ibm db2 free?

761


What is the difference between cursor and select statement?

845


How can the duplicate values be eliminated from db2 select?

860


Differentiate between cs and rr isolation levels? Where do you specify them?

823


File not opened because library is *PROD and debug is UPDPROD(*NO). ? what may be the reason? how to solve it..?

2659


Is ibm db2 open source?

812


What is a plan and package in db2?

840


How and when does the db2 enforces the unique key?

841


What do you mean by cursor?

777


What is the use of with ur in db2?

796


What is buffer pool in the db2 database?

842


Explain about rct in db2?

867


How to find the number of rows in a db2 table?

847


Which is faster delete or truncate?

877