Display files

When a display file object is created, it is tagged with the coded character set identifier (CCSID) of the source file.

At compile time:

At run time, the constant data is converted based on the CHRID parameter value used to create the display file object. This conversion is optional and can occur only when the CHRID is set to *JOBCCSID or indirectly with CHRIDCTL. This conversion is from the display file CCSID to the character identifier (CHRID) of the device. The field-level keyword NOCCSID (no coded character set identifier) allows the user to specify fields within the DDS that are never to be converted.

Note: To use data management support of CCSIDs, you must change source physical files tagged with CCSID 65535 to a CCSID value that is associated with the data.

CHRID parameter on the Create Display File command

The CHRID parameter on the Create Display File (CRTDSPF) command affects the conversion that occurs for the display file.

If the *JOBCCSID value is specified on the CHRID parameter of the CRTDSPF command:

If a specific value is specified for the CHRID parameter on the CRTDSPF command, conversion is done between the CHRID specified on the CRTDSPF command and the CHRID of the device. This conversion affects only fields defined with the CHRID DDS keyword.

If the *DEVD value is specified on the CHRID parameter of the CRTDSPF command, no conversion is performed. This is the default setting.

Migration of display files with CCSID 65535

All source files in Version 3 of the i5/OS™ licensed program have an implicit CCSID value of 65535. To have appropriate CCSID support, display files must be recompiled with a source file that has a CCSID value other than 65535 if either of the following conditions are true:

By recompiling, the display file object is tagged and all necessary conversions take place when needed.

No conversions take place if the source files are explicitly tagged CCSID 65535.

Related concepts
MSGCON (Message Constant) keyword
Character identifier control (QCHRIDCTL) system value
Change the CCSID of a physical file
CCSID support for messages
ERRMSG (Error Message) and ERRMSGID (Error Message Identifier) keywords
SFLMSG (Subfile Message) and SFLMSGID (Subfile Message Identifier) keywords
Related reference
Create Display File (CRTDSPF) command