Reformatting Rules [ Micro Focus COBOL Compatibility Guide ] MPE/iX 5.0 Documentation
Micro Focus COBOL Compatibility Guide
Reformatting Rules
The reform5 utility amends your source program according to the following
rules:
1. If the character in column 1 is an indicator (*/-), reform5
appends six spaces to the beginning of a line.
2. If the character in column 1 is any non-space character not
mentioned in rule 1, reform5 appends seven space characters to the
beginning of the line.
3. If area A (columns 1 to 4 inclusive) contains all spaces, reform5
appends seven additional space characters to the beginning of the
line. However, if the entire line contains spaces, it outputs a
single 72 character line containing spaces.
4. If a line is too long to fit onto a single 72 character line,
reform5 breaks it onto subsequent lines, up to a maximum of three.
Where possible, these breaks occur at a space character to
preserve the program's readability.
5. If a line is expanded beyond 132 characters, reform5 truncates the
line to 132 characters. This prevents any pseudo comment areas
from being included in the program source.
If you wish, you can use any source formatter that amends your source
program according to the above rules; you are not restricted to using
reform5.
MPE/iX 5.0 Documentation