Source Program Format [ SPL to HP C/XL Migration Guide ] MPE/iX 5.0 Documentation
SPL to HP C/XL Migration Guide
Source Program Format
Table 2-2. Source Program Format
---------------------------------------------------------------------------------------------
| | |
| SPL | HP C/XL Equivalent |
| | |
---------------------------------------------------------------------------------------------
| | |
| Records are 80 columns long. | Record lengths are not restricted. |
| | |
---------------------------------------------------------------------------------------------
| | |
| Free field format in columns 1 through 72. | Free field format in all columns. |
| | |
---------------------------------------------------------------------------------------------
| | |
| Columns 73 through 80 may be sequence | Last eight characters of records are |
| numbers. | interpreted as sequence numbers if ALL |
| | eight characters are ASCII numeric. |
| | |
---------------------------------------------------------------------------------------------
| | |
| Statement labels are identifiers followed | Same as SPL. |
| by colon ("label:"). | |
| | |
---------------------------------------------------------------------------------------------
| | |
| A compilation unit is bracketed by the | A compilation unit has no special |
| reserved words BEGIN and END and terminated | delimiters. It consists of declarations |
| with a period (".") | and one or more function definitions. |
| | |
---------------------------------------------------------------------------------------------
| | |
| Compiler commands are denoted by a "$" in | Compiler directives are denoted by a "#" in |
| column 1. | column 1. |
| | |
---------------------------------------------------------------------------------------------
| | |
| A compiler command line is continued to the | A directive line is continued by having "\" |
| next line by having "&" as its last | as the last nonblank. |
| nonblank character. | |
| | |
---------------------------------------------------------------------------------------------
| | |
| Tokens may not be broken across records. | Same as SPL. |
| | |
---------------------------------------------------------------------------------------------
| | |
| Source input is not sensitive to case. | Source input is case sensitive. (Variable |
| (Variable Var1 is the same as var1.) | Var1 is different from var1.) All HP C/XL |
| | keywords must appear in lowercase. |
| | |
---------------------------------------------------------------------------------------------
MPE/iX 5.0 Documentation