Supported RPG Features

When the source of a MOVE or MOVEL is a date, time, or timestamp and the result is a character field, the value is converted to characters using the same rule as DSPLY: the source field's declared DATFMT/TIMFMT is honoured for the traditional external formats, but the extended date formats (*CYMD, *CMDY, *CDMY, *LONGJUL) render as *ISO. MOVE aligns the converted value against the rightmost positions of the result (leading positions stay blank); MOVEL aligns it against the leftmost positions.

C                   MOVE      dMdy           cM8          (*MDY date  → '07/04/24')
C                   MOVE      dCymd          cC10         (*CYMD date → '2024-07-04', *ISO fallback)
C                   MOVE      dMdy           cM12         (right-aligned → '    07/04/24')
C                   MOVEL     dMdy           cM12         (left-aligned  → '07/04/24    ')
C                   MOVE      tHms           cT8          (*HMS time  → '13:45:30')