NODYNAM complier option - Issue

Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

NODYNAM complier option - Issue

Postby bineshrb » Sat May 30, 2009 4:08 pm


I am Binesh, new member to the forum. I am facing an issue with cobol online transaction which has MQ calls in a subroutine.

The online transaction X calles a MQ subroutine Y which has MQ connect , MQ open, MQ get calls.

The call inside the main progam is dyanamic as below. But the online transaction has NODYNAM = Y set in its compiler option.
Call WS-Y using MQ parameter

I was told that MQ subroutine are always coded statically with STUB entries, and my subroutine Y also has STUB entry (CSQQSTUB).

But when ever I make changes to my main module X and install, the application fails and had to backout the change and recompile the subroutine and reinstall. This happenend a couple of times and I am not sure the route cause of the issue, however compiling the subroutine resolves the issue.

However in the test env, I am able to make changes and test successfully without compiling the subroutine 'Y'.

I guess it has something to do the way the subroutine is called in the main program (Dynamically) or with the compiler option , but interestingly the issue does not appear in test.

Any inputs would be of great help..

Posts: 1
Joined: Sat May 30, 2009 3:50 pm
Has thanked: 0 time
Been thanked: 0 time

Re: NODYNAM complier option - Issue


Re: NODYNAM complier option - Issue

Postby dick scherrer » Sat May 30, 2009 11:27 pm

Hello Binesh and welcome to the forum,

Suggest you talk with your cics system support and possibly the people who work with program promotion from test to production. It sounds like there is some environment issue and that will be site-specific.
Hope this helps,
User avatar
dick scherrer
Global moderator
Posts: 6308
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 90 times

Re: NODYNAM complier option - Issue

Postby clunghi » Thu Jun 04, 2009 9:41 pm

Hello Binesh, hello Dick, I'm Carlo and new to the forum as well.
I'm migrating Cobol II applications to Cobol Enterprise. Here we have assumed that CICS programs are absolutely required to be compiled NODYNAM due to the logic the load module is prepared and loaded in memory after automatic CICS translator. It appears to be irrespective of the contained calls.
You can check it in the Enterprise Cobol for z/os, Compiler and Runtime Migration Guide, CICS conversion considerations for Cobol source.
I don't imagine if it is useful for you. Anyway, regards, c.l.
Posts: 3
Joined: Fri May 29, 2009 4:11 am
Has thanked: 0 time
Been thanked: 0 time

Return to IBM Cobol


  • Related topics
    Last post