Description

Use the db2afp command to transform either a DBCS ASCII or an EUC file to an AFP data stream file so that you can print the file on an InfoPrint printer.

The db2afp command can transform input files that use these code pages:

  • Japanese PC (code page number 943)
  • Japanese EUC
  • Traditional Chinese PC (code page number 950)
  • Traditional Chinese EUC
  • Korean EUC

You can run db2afp manually to transform a DBCS ASCII or EUC file to an AFP data stream file without printing it immediately.

The PSF DSS automatically runs the db2afp command whenever:

  • InfoPrint identifies the format of a document in a print job as DBCS ASCII or EUC.
  • You specify document-format=dbcs-ascii with the -x flag or in an attributes file on the pdpr command.
    Note: For EUC format, specify document-format=dbcs-ascii and an EUC code page as the value of the default-character-mapping attribute.
  • You submit a DBCS ASCII or EUC print job and request -odatatype=dbcsascii with one of the AIX print commands (enq, lp, and qprt) or with the lprafp command
  • You select an attributes file that shows dbcs-ascii in the Type of Data in the Print File field, using the InfoPrint SMIT panels.

If you do not specify an input file, the db2afp command defaults to standard input. If no output file is specified, the db2afp command defaults to standard output.

For more information about the db2afp transform, see “Working with Transforms” in the InfoPrint Manager: Procedures manual that is appropriate for your operating system.