support: Customer Portal
Focused on delivering choice, investment protection and flexibility to organizations with valuable COBOL assets
 

Veryant Knowledge Base
Home > All Categories > Transitioning to isCOBOL > Acucobol-GT > Is there a way to have single set of source code that will compile with both ACUCOBOL and isCOBOL?
Question Title 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 7989 times so far.
Click Here to View all the questions in Acucobol-GT category.
File Attachments File Attachments
There are no attachment file(s) related to this question.
How helpful was this article to you?
User Comments User Comments Add Comment
There are no user comments for this question. Be the first to post a comment. Click Here
Related Questions Related Questions
  1. How do I set up isCOBOL to access Vision files?
  2. What ACUCOBOL-GT library routines are supported?
  3. How do I get my screens to be the same size and spacing as when I run with ACUCOBOL?
  4. How do I print to a spooler in Unix?
  5. Does isCOBOL have a utility to migrate Vision files to MS-SQL and PostgreSQL ?
  6. What compile options should I use for a program written for Acucobol-GT?
  7. What is the easiest way to convert the ACUCOBOL-GT configuration file?
Article Information Additional Information
Article Number: 26
Created: 2009-08-28 2:30 PM
Rating: 3 Stars
 
Article Options Article Options
Print Question Print this Question
Email Question Email Question to Friend
Export to Adobe PDF Export to PDF File
Export to MS Word Export to MS Word
Bookmark Article
Subscribe to Article Subscribe to Article
 
Search Knowledge Base Search Knowledge Base



 
 

© Veryant - All Rights Reserved
Veryant and isCOBOL are trademarks or registered marks of Veryant in the United States and other countries. All other marks are the property of their respective owners.