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 .

Answers were Sorted based on User's Feedback



My cobol program(not having any sql statements) is calling another cobol program ( having sql stat..

Answer / 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

My cobol program(not having any sql statements) is calling another cobol program ( having sql stat..

Answer / vidhya

Db2card should be added in the calling program

Is This Answer Correct ?    0 Yes 1 No

My cobol program(not having any sql statements) is calling another cobol program ( having sql stat..

Answer / mangesh

Thanks Santy for all the answers .

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More DB2 Interview Questions

What is the difference between using bind () and rebind () methods of naming class?

0 Answers  


What are sqlcodes –803,-805, -811, -818,-904,-911,-913,-101, +100?

0 Answers  


How to define the a field which accepts value till 99999.99 in db2

3 Answers  


if one db2 pgm calls another db2 pgm. how many plans do we need. what r the steps involved..

4 Answers   IBM,


What is reorg in database?

1 Answers  






What is access path in db2?

0 Answers  


Hi this is sures. i need to practice the ibm mainframes.could u telme how can i get userid from IBM.how much cost they will collect for one user id.can send me the details please.thanq

2 Answers  


How to create a table using embedded sql?

1 Answers  


Request to database but database is not available so what is was abend is raised?

2 Answers   UST,


What can the Locate option of the Repair Utility accomplish?

2 Answers  


When can an insert of a new primary key value threaten referential integrity?

2 Answers   Mind Tree,


can you use symbolic parameters in JOB?

5 Answers   IBM,


Categories