RPG/400 Help

Positions 43-74 (Reserved)

Positions 43-74 must be blank.

See Named Constant Examples

Named Constant Examples

Figure 1. Named Constant Examples

*...1....+....2....+....3....+....4....+....5....+....6....+....7...
I..............Namedconstant+++++++++C.........Fldnme.............
I*
I*The following is an example of a character constant:
I              'MICKEY'              C         MOUSE
I*
I*The following is an example of a continued character constant:
I*
I              'ABCDEF-              C         CHAR
I              'GHIJK'
I*
I*The following is an example of a numeric constant:
I*
I              123456789             C         INTEGER
I*
I*
I*The following is an example of a continued numeric constant:
I*
I              123456-               C         NUM
I              789
I*
 
I*The following is an example of a hexadecimal constant:
I*
I              X'010203'             C         HEX1
I*
I*The following is an example of a continued hexadecimal constant:
I*
I              X'010-                C         HEX2
I              '202'
I*
I*The following is an example of a continued transparent
I*constant.  The Shift Out (SO) and Shift In (SI) characters
I*are represented by o and i.  The value of the combined literal
I*is 'oK1K2K3K4K5i' if the transparent literal option is specified
I*(1 in position 57 of the control specification).
I*
I              'oK1K2K3i-            C         TRANS
I              'oK4K5i'


[ Top of Page | Previous Page | Next Page | Table of Contents ]