Compiler Notes [ HP Micro Focus COBOL/iX Implementation Notes ] MPE/iX 5.0 Documentation
HP Micro Focus COBOL/iX Implementation Notes
Compiler Notes
* The cob online manpage for information on the cob command is in
$COBDIR/docs/cob.1.
* If you compile a source file that contains multiple programs the
output file for the first program will be sourcefile.int while the
output file for all subsequent files will be PROGRAM-ID.int (or
sourcefile.idy and PROGRAM-ID.idy). For example, if you compile
the source file file1 that contains program ab and program bc,
program ab will be in file1.int and bc will be in BC.int.
To prevent the program-id from being folded to uppercase, put the
name specified in the PROGRAM-ID of the subprogram in quotes. If
the name of the subprogram is used in an END PROGRAM statement, be
sure to put your END PROGRAM name in quotes as well.
For example:
identification division.
program-id. "bc".
environment division.
data division.
working-storage section.
01 the-status pic xx value "00".
procedure division.
main-00 section.
main-module.
display "HELLO WORLD".
exit program.
end program "bc".
* ASSIGN TO PRINTER sends output to a file called LPT1 rather than a
printer. Refer to "
Differences Between HP Micro Focus COBOL/HP-UX andHP Micro Focus
COBOL/iX" for information on how to use the MPE/iX print
command in place of the lp command to send the output to a
physical printer.
* There is an implied DISPLAY UPON ENVIRONMENT-NAME at
initialization. ENVIRONMENT-NAME is set to spaces.
* The following compiler directives are reserved for future use.
Although they appear in the SETTINGS list, you should not change
their values:
CALLSORT
ENSUITE
FCDREG
PREPROCESS
SYNCHRONISE
* If there is a PROGRAM-ID clause in a program with the OSVS
directive set, the compiler ignores any information that follows
that clause until it encounters a syntactically correct (that is,
all syntax is correct) division heading. If you have a misspelled
division heading, it is not syntactically correct, and the
compiler will continue ignoring information until the next
division heading.
* If you build an executable file that does not require variable
length records, you should explicitly exclude the Micro Focus
variable record length file handler, mFFH. Use the following
command line flag:
-X mFFH
This should create smaller executable files for simple programs
without dynamic loading. If you exclude the handler, and the
program subsequently performs a variable length record file
operation, you will receive the following Run-Time System error:
107 Operation not implemented in this Run-Time System
MPE/iX 5.0 Documentation