ILE RPG Language Reference
Table 51 lists the required and allowed entries for
each definition specification type.
Table 52 and Table 53 list the keywords
allowed for each definition specification type.
In each of these tables, an R indicates that
an entry in these positions is required and an A indicates
that an entry in these positions is allowed.
Table 51. Required/Allowed Entries for each Definition Specification Type
| Type |
Pos. 7-21 Name |
Pos. 22 External |
Pos. 23 DS Type |
Pos. 24-25 Defn. Type |
Pos. 26-32 From |
Pos. 33-39 To / Length |
Pos. 40 Data- type |
Pos. 41-42 Decimal Pos. |
Pos. 44-80 Key- words |
|
Data
Structure
|
A |
A |
A |
R |
|
A |
|
|
A |
|
Data
Structure
Subfield
|
A |
|
|
|
A |
A |
A |
A |
A |
| External Subfield |
A |
R |
|
|
|
|
|
|
A |
| Standalone Field |
R |
|
|
R |
|
A |
A |
A |
A |
|
Named
Constant
|
R |
|
|
R |
|
|
|
|
R |
| Prototype |
R |
|
|
R |
|
A |
A |
A |
A |
|
Prototype
Parameter
|
A |
|
|
|
|
A |
A |
A |
A |
|
Procedure
Interface
|
A |
|
|
R |
|
A |
A |
A |
A |
|
Procedure
Interface
Parameter
|
R |
|
|
|
|
A |
A |
A |
A |
Table 52. Data Structure, Standalone Fields, and Named Constants Keywords
| Keyword |
Data Structure |
Data Structure Subfield |
External Subfield |
Standalone Field |
Named Constant |
| ALIGN |
A |
|
|
|
|
| ALT |
|
A |
A |
A |
|
| ALTSEQ |
A |
A |
A |
A |
|
| ASCEND |
|
A |
A |
A |
|
| BASED |
A |
|
|
A |
|
| CCSID |
|
A |
|
A |
|
| CLASS |
|
|
|
A |
|
| CONST1 |
|
|
|
|
R |
| CTDATA2 |
|
A |
A |
A |
|
| DATFMT |
|
A |
|
A |
|
| DESCEND |
|
A |
A |
A |
|
| DIM |
A |
A |
A |
A |
|
| DTAARA2 |
A |
A |
|
A |
|
| EXPORT2 |
A |
|
|
A |
|
| EXTFLD |
|
|
A |
|
|
| EXTFMT |
|
A |
A |
A |
|
| EXTNAME4 |
A |
|
|
|
|
| FROMFILE2 |
|
A |
A |
A |
|
| IMPORT2 |
A |
|
|
A |
|
| INZ |
A |
A |
A |
A |
|
| LEN |
A |
A |
|
A |
|
| LIKE |
|
A |
|
A |
|
| LIKEDS5 |
A |
A |
|
|
|
| LIKEREC |
A |
A |
|
|
|
| NOOPT |
A |
|
|
A |
|
| OCCURS |
A |
|
|
|
|
| OVERLAY |
|
A |
|
|
|
| PACKEVEN |
|
A |
|
|
|
| PERRCD |
|
A |
A |
A |
|
| PREFIX4 |
A |
|
|
|
|
| PROCPTR |
|
A |
|
A |
|
| QUALIFIED |
A |
|
|
|
|
| STATIC3 |
A |
|
|
A |
|
| TEMPLATE |
A |
|
|
A |
|
| TIMFMT |
|
A |
|
A |
|
| TOFILE2 |
|
A |
A |
A |
|
| VARYING |
|
A |
|
A |
|
|
Notes:
- When defining a named constant, the keyword is optional, but the
parameter to the keyword is required. For example, to assign a named
constant the value '10', you could specify either CONST('10') or '10'.
- This keyword applies only to global definitions.
- This keyword applies only to local definitions.
- This keyword applies only to externally described data structures.
- This keyword applies only to program-described data
structures.
|
Table 53. Prototype, Procedure Interface, and Parameter Keywords
| Keyword |
Prototype (PR) |
Procedure Interface (PI) |
PR or PI Parameter |
| ALTSEQ |
A |
A |
A |
| ASCEND |
|
|
A |
| CCSID |
A |
A |
A |
| CLASS |
A |
A |
A |
| CONST |
|
|
A |
| DATFMT |
A |
A |
A |
| DESCEND |
|
|
A |
| DIM |
A |
A |
A |
| EXTPGM |
A |
A |
|
| EXTPROC |
A |
A |
|
| LEN |
A |
A |
A |
| LIKE |
A |
A |
A |
| LIKEFILE |
|
|
A |
| LIKEDS |
A |
A |
A |
| LIKEREC |
A |
A |
A |
| NOOPT |
|
|
A |
| OPDESC |
A |
A |
|
| OPTIONS |
|
|
A |
| PROCPTR |
A |
A |
A |
| RTNPARM |
A |
A |
|
| STATIC |
A |
A |
|
| TIMFMT |
A |
A |
A |
| VALUE |
|
|
A |
| VARYING |
A |
A |
A |
[ Top of Page | Previous Page | Next Page | Contents |
Index ]