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

What is the physical storage length of the data types: date, time, timestamp in the db2 database?

634


What does db2 blu stand for?

652


i tried to copy some records from microsoft excel to as-400 physical file through "Bosanova" emulation. Out of 14000 records only 12000 records copies and subsequently programe started to hang. Then, i closed the program forcefully. I did' under stand the problem. Also when i try to compile the physical file it is showing as "The file in use". How to overcome this problem?

2042


What is db2?

735


Explain about rct.

639






How do you pull up a query which was previously saved in qmf?

662


What is the use of predicate?

577


What is cobol db2?

559


Before you give the explain statement, what are the prerogatives?

573


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

709


How and when does the db2 enforces the unique key?

609


What are the benefits of using the db2 database?

654


What is the use of commit in db2?

624


What is consistency token in db2?

629


What is dbrm library?

571