Program-described printer files and externally described printer files are two types of printer files.
Program-described files rely on the high-level language program to define records and fields to be printed.
Externally described printer files use DDS rather than the high-level language to define records and fields to be printed.
The following figure shows how externally described printer files are used in creating reports for a different national language version.
When you design printer files to be translated into a national language version, consider these guidelines:
Different countries have different page-size standards.
The overflow line number must be less than or equal to the page length.
If the CHRID parameter of the printer file is set to *DEVD, the printer uses the character identifier that was set on the control panel or specified in the device description.
If the CHRID parameter of the printer file is set to a specific value, this value determines the code page and character set used to print the data. For externally described printer files, the CHRID parameter is used only for fields that also have the CHRID DDS keyword specified. For all other fields, the code page and character set used is the same as if *DEVD was specified.
If the CHRID parameter of the printer file is set to *JOBCCSID, constant text from an externally described printer file is converted to the CCSID of the job. The printer data stream is tagged with the CHRID taken from the job CCSID, using this CHRID value to print the data. When using the *JOBCCSID value on the CHRID parameter, the CHRID DDS keyword is ignored.