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

Veryant Knowledge Base
Home > All Categories > Compiler General > Is there a compiler option in isCOBOL to extend the length of AREA B in a program source code?
Question Title Is there a compiler option in isCOBOL to extend the length of AREA B in a program source code?

Yes, in version 2019R1 we introduced a new compiler option for this purpose: -sl

This option augments isCOBOL compatibility with other dialects.
It allows AREA B to extend to the end of the line, regardless of line length.
As with other regular compiler options, you need to include it in the compilation string at the command line. Attached is a program called sl.cbl that you can compile using this command:

   iscc -sl sl.cbl
You can see that it compiles successfully. Another way of implementing this is with the IMP MARGIN-R IS AFTER END OF RECORD Directive, specifying
   >>IMP MARGIN-R IS AFTER END OF RECORD 
at the top of the source file.
Also attached is a program called imp-margin.cbl containing this directive in the first line of the program.
You can test it by compiling with this command:
   iscc imp-margin.cbl

Authored by: Veryant Support This question has been viewed 151 times so far.
Click Here to View all the questions in Compiler General category.
File Attachments File Attachments
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. Why do I get the error "java.lang.NoClassDefFoundError: com/sun/tools/javac/Main" ?
  2. How do I resolve "Error writing file: too many constants" error?
  3. What compiler options cannot be specified with the >> IMP OPTION compiler directive?
  4. Is there a faster way to compile?
  5. How can I make my Linkage parameters more flexible?
  6. How do I retrieve the version of the Java Compiler and the isCOBOL Compiler that produced a given class file?
  7. Using Regular Expressions to replace text in your program
Article Information Additional Information
Article Number: 310
Created: 2020-04-10 8:22 AM
Rating: No Rating
 
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.