Focused on delivering choice, investment protection and flexibility to organizations with valuable COBOL assets
Veryant Knowledge Base
Home > All Categories
> isCOBOL General > Is there a way to have single set of source code that will compile with both ACUCOBOL and isCOBOL?
Is there a way to have single set of source code that will compile with both ACUCOBOL and isCOBOL?
Question:
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?
Answer:
Try coding the LOCK THREAD this way:
* lock thread | acu
synchronized | isc
...
* unlock thread | acu
end-synchronized | isc
Then 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
This question has been viewed 7338 times so far.
Click
Here to View all the questions in isCOBOL General
category.
File Attachments
There are no attachment file(s) related to this question.
User Comments
There are no user comments for this question. Be the first to post a comment. Click Here