Submitted Questions

  • Dynamic Linking in COBOL

    I have two modules called 'A' and 'B'. Module 'A' opens the ORACLE database connection, and Calls 'B', which queries the database using the 'SELECT' statement.When I hard code the module name during CALL, the called module uses the database connection opened in the module 'A'. Pls refer below:CALL "B"But, when I moved the module name into a variable and try to call the module, as belowMOVE "B" TO...

    Sharad

    • Feb 9th, 2016

    This problem can be resolved by compiling the main program (Calling program) using the DYNAM compiler option

  • 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...