The following section covers the known issues when submitting RM/COBOL source programs to this COBOL system. Where possible, work-arounds and resolutions are also provided.
Perform Statements
PERFORM statements are not treated in the same way by both COBOL systems. This COBOL system uses a stack-based perform handling system, while the RM/COBOL system associates a return address with a specific procedure name.
ACCEPT FROM CENTURY-DATE and FROM CENTURY-DAY
In Studio Enterprise Edition, to use the FROM CENTURY-DATE and FROM CENTURY-DAY phrases with the ACCEPT statement, set the RM Compiler directive.
Nested COPY statements with REPLACING phrase In Studio Enterprise Edition, you cannot specify text replacement as part of a nested COPY statement when text replacement is already active as part of a COPY statement.
Duplicate Paragraph-names Studio Enterprise Edition and RM/COBOL differ in the way that they reference paragraph-names when two or more duplicate paragraph names exist differs.
Empty Groups
In Studio Enterprise Edition, if you have any empty groups specified in your source code, you must set the DIALECT"RM" Compiler directive.
Figurative Constants and the USING Phrase
In Studio Enterprise Edition, to use figurative constants in the USING phrase of a CALL statement or as values of level 78 constants, set the DIALECT"RM" Compiler directive.
File Not Found Errors Studio Enterprise Edition and RM/COBOL differ in the environment variables that they use to locate program and data files.
Indexed File Error on Open Studio Enterprise Edition and RM/COBOL differ in how they handle record length fields and some data fields when you open an RM/COBOL indexed file.
Linkage Section in Main Program Studio Enterprise Edition and RM/COBOL differ in their ability to reference the Linkage Section items in the main program.
Library Routines
To use the RM/COBOL standard library routines that are available in Studio Enterprise Edition, you must use the 1024 calling convention.
Nested OCCURS DEPENDING Clauses
In Studio Enterprise Edition, if you are using nested OCCURS DEPENDING clauses, you must set the ODOSLIDE Compiler directive.
Numbering of Segments Studio Enterprise Edition and RM/COBOL differ in the number of segments that they permit you to specify.
Program Identification and Data Names
In Studio Enterprise Edition, ensure that the Program-ID name does not share the same name as any data items in the program.
REMARKS Paragraph
In Studio Enterprise Edition, if your program uses the REMARKS paragraph in the Identification Division, you must set the DIALECT"RM" Compiler directive.
Reserved Words
In Studio Enterprise Edition, setting certain Compiler directives (such as RM and ANS85) activates certain reserved words that you cannot use as names for your data items.
Source Code in Columns 73 to 80 Studio Enterprise Edition ignores any of the code in your source programs which lies within columns 73-80 inclusive.
Undeclared Data Items in Clauses
In Studio Enterprise Edition, if the data item used in a clause (for example, the File Status clause) is not declared, you receive an error.
User-names Longer than 127 Bytes are Truncated
In RM/COBOL, you can specify user-names (data-names, procedure-names, program-names, etc) up to 240 characters long. In this COBOL system, user-names longer than 127 bytes in length are truncated and a warning message is produced.