Automated Testing

Automated Testing

Automated Testing

Build an automated testing process to enable continuous integration of your hybrid cloud applications including z/OS

 View Only
  • 1.  Windows Cobol: IWZ096C Dynamic call of program failed

    Posted Wed December 19, 2012 09:49 AM
    Dear All,

    I am running a COBOL program (ptptedit.cbl) for Windows in RDZ V7.6 using Oracle database. All the calls in the program are rewritten using call identifier; one example is as shwon below.

    Code:
    MOVE 'C_SQLCNC' TO W-WK-PROGRAM-NAME
    CALL W-WK-PROGRAM-NAME USING SQL-CURSOR
    DBTYPE OF SQL
    ACCESS-DATA OF SQLRT
    OPRID OF SQLRT
    BATCH-RUN-ID OF SQLRT
    OWNERID OF SQLRT

    The oracle environment is setup properly and 'SQLPLUS' command gives oracle dialog asking for username and password. The program is compiled using the below command.

    Code:
    cob2 -v -dynam ptptedit.cbl

    It passes the compile and link-edit creates the .exe file. However I am getting run-time error as shown below.

    Code:
    IWZ096C Dynamic call of program C_SQLCNC failed. The load module C_SQLCNC.dll
    could not be found in the directories identified in the COBPATH
    environment variable.
    iwzrlib.dll : 0
    iwzrlib.dll : 0
    iwzrlib.dll : 0
    PTPSQLRT.dll : 0
    PTPTEDIT.exe : 0
    iwzrlib.dll : 0
    PTPTEDIT.exe : 0
    kernel32.dll : 0
    IWZ901S Program exits due to severe or critical error.
    The COBPATH environment points to library folder which contains the .lib files. There is no program named 'C_SQLCNC' or 'C_SQLCNC.dll' and these are database related calls. Can anyone please help me out?

    Regards,
    Jay
    SystemAdmin


  • 2.  Re: Windows Cobol: IWZ096C Dynamic call of program failed

    Posted Thu December 20, 2012 10:05 AM
    This forum is specific to RD&T. Since this is an RDz/COBOL question I would repost in the RDz forum or Cobol cafe
    RDz_Dave


  • 3.  Re: Windows Cobol: IWZ096C Dynamic call of program failed

    Posted Fri December 21, 2012 08:24 AM
    This forum is for reporting issues with RD&T. You'll likely get better results if you move this append to the COBOL cafe. In the meantime, I did get this response from one of our COBOL experts:

    I see you're using cob2 -v -dynam ptptedit.cbl
    That should have given a syntax error. You forgot the letter q.
    cob2 -v -qdynam ptptedit.cbl
    Then use the command echo %COBPATH% to be sure the dll files are in that path.
    Remember that when using the -qdynam, that means that all CALL verbs are now dynamic.

    RDzJohn
    RDzJohn


  • 4.  Re: Windows Cobol: IWZ096C Dynamic call of program failed

    Posted Fri December 21, 2012 09:08 AM
    Hi John,

    Thanks for the reply. Yes its typo from my side and I have used '-qdynam' itself and I find it's not necessary as 'Call identifier' calls are always dynamic. These dlls seem to be database specific and COBPATH doesn't have these dll files. The problem I face is unable to connect to the Oracle database. Posted similar query in Cobol cafe at the link https://www.ibm.com/developerworks/forums/thread.jspa?threadID=465930 and waiting for Cobol experts to revert back.

    Thanks,
    Jay
    SystemAdmin