Free-Form Standalone Field Definition

A free-form standalone field begins with DCL-S, followed by the name of the field, followed by keywords, and finally a semicolon.

If a data-type keyword is specified, it must be the first keyword.

Examples of free-form standalone field definitions

  • A packed field named limit with five digits and zero decimal positions, initialized to 100. The PACKED keyword must be first because it is the data-type keyword.
    
      DCL-S limit PACKED(5) INZ(100);
    
  • A field named num defined with the LIKE keyword, initialized to 0. There is no data-type keyword. The LIKE keyword can appear anywhere.
    
      DCL-S num INZ(0)
                LIKE(limit);