Sign in

docs RPG Reference

CHARCOUNT(*NATURAL | *STDCHARSIZE)

CHARCOUNT(*NATURAL | *STDCHARSIZE)

The Control keyword CHARCOUNT specifies the default mode for processing strings in the module.

*NATURAL : Process strings by the natural size of each character.

The [CHARCOUNTTYPES](/doc/en/docs/rpg-reference/hcharcounttypes/) keyword controls the
data that is affected by the CHARCOUNT mode.

*STDCHARSIZE : Process strings by bytes or double bytes.

If this keyword is not specified, it defaults to CHARCOUNT(*STDCHARSIZE).