Summary According to Definition Specification Type

Table 1 lists the required and allowed entries for each definition specification type.

Table 2 and Table 3 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 1. 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 2. 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  
Start of change BINDEC7 End of change Start of change   End of change Start of change A End of change Start of change   End of change Start of change A End of change Start of change   End of change
Start of change CHAR7 End of change Start of change   End of change Start of change A End of change Start of change   End of change Start of change A End of change Start of change   End of change
CCSID   A   A  
CLASS6       A  
CONST1         R
CTDATA2   A A A  
Start of change DATE7 End of change Start of change   End of change Start of change A End of change Start of change   End of change Start of change A End of change Start of change   End of change
DATFMT6   A   A  
DESCEND   A A A  
DIM A A A A  
DTAARA2 A A   A  
EXPORT2 A     A  
Start of change EXT5 End of change Start of change A End of change Start of change   End of change Start of change   End of change Start of change   End of change Start of change   End of change
EXTFLD     A    
EXTFMT   A A A  
EXTNAME4 A        
Start of change FLOAT7 End of change Start of change   End of change Start of change A End of change Start of change   End of change Start of change A End of change Start of change   End of change
FROMFILE2   A A A  
Start of change GRAPH7 End of change Start of change   End of change Start of change A End of change Start of change   End of change Start of change A End of change Start of change   End of change
IMPORT2 A     A  
Start of change IND7 End of change Start of change   End of change Start of change A End of change Start of change   End of change Start of change A End of change Start of change   End of change
Start of change INT7 End of change Start of change   End of change Start of change A End of change Start of change   End of change Start of change A End of change Start of change   End of change
INZ A A A A  
LEN A A   A  
LIKE   A   A  
LIKEDS5 A A      
LIKEREC A A      
NOOPT A     A  
Start of change OBJECT7 End of change Start of change   End of change Start of change A End of change Start of change   End of change Start of change A End of change Start of change   End of change
OCCURS A        
OVERLAY   A      
Start of change PACKED7 End of change Start of change   End of change Start of change A End of change Start of change   End of change Start of change A End of change Start of change   End of change
PACKEVEN6   A      
PERRCD   A A A  
Start of change POINTER7 End of change Start of change   End of change Start of change A End of change Start of change   End of change Start of change A End of change Start of change   End of change
Start of change POS5 End of change Start of change   End of change Start of change A End of change Start of change   End of change Start of change   End of change Start of change   End of change
PREFIX4 A        
PROCPTR6   A   A  
Start of change PSDS End of change Start of change A End of change Start of change   End of change Start of change   End of change Start of change   End of change Start of change   End of change
QUALIFIED A        
STATIC3 A     A  
TEMPLATE A     A  
Start of change TIME7 End of change Start of change   End of change Start of change A End of change Start of change   End of change Start of change A End of change Start of change   End of change
Start of change TIMESTAMP7 End of change Start of change   End of change Start of change A End of change Start of change   End of change Start of change A End of change Start of change   End of change
TIMFMT6   A   A  
TOFILE2   A A A  
Start of change UCS27 End of change Start of change   End of change Start of change A End of change Start of change   End of change Start of change A End of change Start of change   End of change
Start of change UNS7 End of change Start of change   End of change Start of change A End of change Start of change   End of change Start of change A End of change Start of change   End of change
Start of change VARCHAR7 End of change Start of change   End of change Start of change A End of change Start of change   End of change Start of change A End of change Start of change   End of change
Start of change VARGRAPH7 End of change Start of change   End of change Start of change A End of change Start of change   End of change Start of change A End of change Start of change   End of change
Start of change VARUCS27 End of change Start of change   End of change Start of change A End of change Start of change   End of change Start of change A End of change Start of change   End of change
VARYING6   A   A  
Start of change ZONED7 End of change Start of change   End of change Start of change A End of change Start of change   End of change Start of change A End of change Start of change   End of change
Note:
  1. 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'.
  2. This keyword applies only to global definitions.
  3. This keyword applies only to local definitions.
  4. This keyword applies only to externally described data structures.
  5. This keyword applies only to program-described data structures.
  6. Start of change This keyword applies only to free-form definitions. End of change
  7. Start of change This keyword applies only to fixed-form definitions. End of change
Table 3. Prototype, Procedure Interface, and Parameter Keywords
Keyword Prototype (PR) Procedure Interface (PI) PR or PI Parameter
ALTSEQ A A A
ASCEND     A
Start of change BINDEC1 End of change Start of change A End of change Start of change A End of change Start of change A End of change
CCSID A A A
Start of change CHAR1 End of change Start of change A End of change Start of change A End of change Start of change A End of change
CLASS2 A A A
CONST     A
Start of change DATE1 End of change Start of change A End of change Start of change A End of change Start of change A End of change
DATFMT2 A A A
DESCEND     A
DIM A A A
EXTPGM A A  
EXTPROC A A  
Start of change FLOAT1 End of change Start of change A End of change Start of change A End of change Start of change A End of change
Start of change GRAPH1 End of change Start of change A End of change Start of change A End of change Start of change A End of change
Start of change IND1 End of change Start of change A End of change Start of change A End of change Start of change A End of change
Start of change INT1 End of change Start of change A End of change Start of change A End of change Start of change A End of change
LEN A A A
LIKE A A A
LIKEFILE     A
LIKEDS A A A
LIKEREC A A A
NOOPT     A
Start of change OBJECT1 End of change Start of change A End of change Start of change A End of change Start of change A End of change
OPDESC A A  
OPTIONS     A
Start of change PACKED1 End of change Start of change A End of change Start of change A End of change Start of change A End of change
Start of change POINTER1 End of change Start of change A End of change Start of change A End of change Start of change A End of change
PROCPTR2 A A A
RTNPARM A A  
STATIC A A  
Start of change TIME1 End of change Start of change A End of change Start of change A End of change Start of change A End of change
Start of change TIMESTAMP1 End of change Start of change A End of change Start of change A End of change Start of change A End of change
TIMFMT2 A A A
Start of change UCS21 End of change Start of change A End of change Start of change A End of change Start of change A End of change
Start of change UNS1 End of change Start of change A End of change Start of change A End of change Start of change A End of change
VALUE     A
Start of change VARCHAR1 End of change Start of change A End of change Start of change A End of change Start of change A End of change
Start of change UNS1 End of change Start of change A End of change Start of change A End of change Start of change A End of change
Start of change VARCHAR1 End of change Start of change A End of change Start of change A End of change Start of change A End of change
Start of change VARGRAPH1 End of change Start of change A End of change Start of change A End of change Start of change A End of change
Start of change VARUCS21 End of change Start of change A End of change Start of change A End of change Start of change A End of change
VARYING2 A A A
Start of change ZONED1 End of change Start of change A End of change Start of change A End of change Start of change A End of change
Note:
  1. Start of change This keyword applies only to free-form definitions. End of change
  2. Start of change This keyword applies only to fixed-form definitions. End of change