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

How to connect to db2 database from windows command line?

0 Answers  


select * from orders where odate between '2010-01-01'and '2010-03-31' How do u fetch this into cursor?

2 Answers  


what is the process of precompiler?

2 Answers  


How do you select a row using indexes in db2?

0 Answers  


What is runstats and reorg in db2?

0 Answers  






Can a Db2 table data be retrived through JCL?

4 Answers  


How to resolve the -305 error code in DB2? And also please let me know, how to resolve the db2 error codes.

7 Answers   TCS,


What is a NULL value? What are the pros and cons of using NULLS?

2 Answers  


what is differnece between DROP TABLE & DELETE TABLE .

4 Answers   Cap Gemini,


Describe the elements of the SELECT query syntax?

3 Answers  


how to resolve -811

2 Answers   IBM,


What are the contents of a DCLGEN?

4 Answers   MetLife,


Categories