Sign in

docs RPG Reference

Position 36 (Data Format)

Position 36 (Data Format)

Entry : Explanation

Blank : The input field is in zoned decimal format or is a character field.

A : Character field (fixed- or variable-length format 1)

C : UCS-2 field (fixed- or variable-length format 1)

G : Graphic field (fixed- or variable-length format 1)

B : Numeric field (binary-decimal format)

F : Numeric field (float format)

I : Numeric field (integer format)

L : Numeric field with a preceding (left) plus or minus sign (zoned decimal format)

N : Character field (Indicator format)

P : Numeric field (packed decimal format)

R : Numeric field with a following (right) plus or minus sign (zoned decimal format)

S : Numeric field (zoned decimal format)

U : Numeric field (unsigned format)

D : Date field — the date field has the external format specified in positions 31-34 or the default file date format.

T : Time field — the time field has the external format specified in positions 31-34 or the default file time format.

Z : Timestamp field

Note:

  1. For variable-length format, specify *VAR in positions 31-34.

The entry in position 36 specifies the data type, and if numeric, the external data format of the data in the program-described file.