Topic
3 replies Latest Post - ‏2012-12-21T14:08:12Z by SystemAdmin
SystemAdmin
SystemAdmin
253 Posts
ACCEPTED ANSWER

Pinned topic Windows Cobol: IWZ096C Dynamic call of program failed

‏2012-12-19T14:49:03Z |
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
Updated on 2012-12-21T14:08:12Z at 2012-12-21T14:08:12Z by SystemAdmin
  • RDz_Dave
    RDz_Dave
    26 Posts
    ACCEPTED ANSWER

    Re: Windows Cobol: IWZ096C Dynamic call of program failed

    ‏2012-12-20T15:05:26Z  in response to SystemAdmin
    This forum is specific to RD&T. Since this is an RDz/COBOL question I would repost in the RDz forum or Cobol cafe
  • RDzJohn
    RDzJohn
    268 Posts
    ACCEPTED ANSWER

    Re: Windows Cobol: IWZ096C Dynamic call of program failed

    ‏2012-12-21T13:24:16Z  in response to SystemAdmin
    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
    • SystemAdmin
      SystemAdmin
      253 Posts
      ACCEPTED ANSWER

      Re: Windows Cobol: IWZ096C Dynamic call of program failed

      ‏2012-12-21T14:08:12Z  in response to RDzJohn
      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