|Title: Is there a way to have single set of source code that will compile with both ACUCOBOL and isCOBOL?|
I have a program that used LOCK THREAD which is not supported with isCOBOL. The solution was to use the SYNCHRONIZED statement instead. With LOCK THREAD, my program won't compile with isCOBOL. With SYNCHRONIZED, it won't compile with acu. What can I do in order to have the same source code compile with both acu and isCOBOL?
Try coding the LOCK THREAD this way:
* lock thread | acu synchronized | isc ... * unlock thread | acu end-synchronized | iscThen you can compile with isCOBOL without additional options, and compile with ACUCOBOL using options -sx isc -si acu.
Another alternative is to use Micro Focus or IBM style conditional compilation directives.
|Authored by: Veryant Support on Fri, Aug 28th, 2009 at 7:00 PM
This question has been viewed 6863 times so far.
|Online URL: http://support.veryant.com/support/phpkb/question.php?ID=26|
Powered by PHPKB Knowledge Base Software