Sharing the database connection across different COBOL Modules in IBM AIX.

Consider there are three different COBOL modules named 'A', 'B' and 'C' in IBM AIX OS. The program flow is 'A' calls 'B', 'B' calls 'C'. I have established the ORACLE database connection in the module 'A'. I want to use the same ORACLE database connection in the modules 'B' and 'C'.

I have tried linking all the modules as follows :
"cob2 A.cbl B.cbl C.cbl -o ABC".

The executable file "ABC" is executing the module 'A' first and then it calls 'B'. But the ORACLE SQL statements in the module 'B' is not getting executed because of the absence of DATABASE CONNECTION.

Can anyone tell me how to share the database connection across the different COBOL Modules in IBM AIX ?

--
Kind Regards,
Mohan

Questions by mohanaraj_j

 

This Question is not yet answered!

 
 

Related Answered Questions

 

Related Open Questions