SPL to HP C/XL Migration Guide (30231-90001)
3- 11
Identifiers
Table 3-18. Identifiers
---------------------------------------------------------------------------------------------
| | |
| SPL | HP C/XL Equivalent |
| | |
---------------------------------------------------------------------------------------------
| | |
| An identifier consists of one to 15 letters | An identifier consists of one to 255 |
| ("A" to "Z" and "a" to "z"), digits ("0" to | letters ("A" to "Z" and "a" to "z"), digits |
| "9"), and apostrophes ("'"), starting with | ("0" to "9", and underscores ("_"), |
| a letter. | starting with a letter or underscore. |
| | |
---------------------------------------------------------------------------------------------
| | |
| Upper- and lowercase letters are | Upper- and lowercase letters are
not
|
| equivalent. |
equivalent
. |
| The identifier VAR2 is the same as var2. | The identifier VAR2 is different from var2. |
| | |
---------------------------------------------------------------------------------------------
| | |
| Identifiers longer than 15 characters are | Identifiers longer than 255 characters are |
| truncated on the right. | invalid. |
| | |
---------------------------------------------------------------------------------------------
Change apostrophe, "'", to underscore, "_", in identifiers.
Make sure that any SPL identifiers over 15 characters long do not become
"unique" due to the extra characters. For example, these two
identifiers,
A23456789012345
A23456789012345B
are the same in SPL but different in HP C/XL.
Arrays
Table 3-19. Arrays
---------------------------------------------------------------------------------------------
| | |
| SPL | HP C/XL Equivalent |
| | |
---------------------------------------------------------------------------------------------
| | |
| Type: Array of simple data type. | Type: Array of simple data type. |
| | |
---------------------------------------------------------------------------------------------
| | |
| Arrays are single-dimensional vectors of | Same as SPL. Arrays may be |
| contiguous storage. | multi-dimensional, in the sense that arrays |
| | of arrays can be declared. |
| | |
---------------------------------------------------------------------------------------------
| | |
| Arrays may be located relative to DB, Q, S, | There can be no explicit references to |
| or P registers. | registers, and no read-only constant |
| | arrays. (There exists no equivalent to |
| | SPL's PB-based arrays.) |
| | |
---------------------------------------------------------------------------------------------