Specific update rules for migrated Macros
If you update migrated Macros, you must conform to the syntactic rules of all Macros but also to the specific rules of the migrated Macros.
The syntactic rules that are common to all Macros are explained in Code syntax in the Macro COBOL editor and Controls of the Macro source code syntax.
When you update a migrated Macro, you must conform to the following rules:
- You are strongly advised against modifying line numbers in the PROCEDURE DIVISION of the migrated Macros to prevent any line move in the instances that call these Macros.
- The new lines must be inserted in existing line numbers.
- The line numbers of the migrated Macros must be kept. Their line numbers of condition lines are on 3 characters, whereas the line numbers of code lines are on 6 characters.
- If you call a new Macro in an instance that already calls Macros, the following two cases are possible:
- If the new Macro is nested in a migrated Macro, the line numbers must take on the same length: 3 characters for condition lines and 6 characters for code lines.
- If the Macro is not nested, the line numbers must be on 3 characters, whatever the line type is.