Flags and values
You can specify these flags and values
- With the db2afp command
- With the enq -o, lp -o, qprt -o, or lprafp commands
- With the pdpr command, using the other-transform-options attribute or equivalent attributes on the command line or in an attributes file
- -oOutputFile
- Specifies the name of the AFP data stream output file generated by the transform. If you do not specify the -o flag, InfoPrint writes the result to standard output.
- You cannot use -oOutputFile on the command line with the enq, lp, qprt, or lprafp commands. You can only use -oOutputFile with the db2afp command, or with the other-transform-options attribute on the pdpr command.
- This flag is equivalent to the transform-output-file-name document attribute on the pdpr command.
- -l {japanese | chinese |korean}
- Specifies the language to be used for the transform. The values are:
- ja or japanese
- The input file is in Japanese.
- ch or chinese
- The input file is in Traditional Chinese for AIX or Linux (code page 950).
- c2
- The input file is in Traditional Chinese for Windows (code page 950).
- ko or korean
- The input file is in Korean.
Note: If you specify -l ko, you must also specify the -e flag. The db2afp command supports only Korean EUC, not Korean DBCS ASCII.
If you do not specify -l or -e on the command line, the db2afp command uses the value that has previously been set and exported with the PSFDBLANG environment variable. The PSFDBLANG environment variable can be set to one of these values:
- j
- Japanese (code page 943)
- je
- Japanese EUC
- c
- Traditional Chinese (code page 950)
- t
- Traditional Chinese (code page 950)
- ce
- Traditional Chinese EUC
- ke
- Korean EUC
With InfoPrint Manager for AIX or InfoPrint Manager for Linux, if you are unsure about the value to use with the PSFDBLANG environment variable, enter this command:
echo $LANG
The command displays one of these output values:- Ja_JP
- Japanese DBCS ASCII
- ja_JP
- Japanese EUC
- zh_TW
- Traditional Chinese EUC
- ko_KR
- Korean EUC
With InfoPrint Manager for Windows, if you are unsure about the value to use with the PSFDBLANG environment variable, enter this command at a Windows command prompt:
chcp
The command displays this information:Active code page: nnn
where nnn is the code page number 943 or 950.- Note:
- A Traditional Chinese DBCS ASCII locale does not exist.
If you specify either -l or -e on the command line, the db2afp command ignores the value set in the PSFDBLANG environment variable. If the PSFDBLANG value has not been set and you do not specify -l (and -e for EUC files), the transform will not work.
- The value set in the PSFDBLANG environment variable is used when you submit a DBCS ASCII or EUC print job with the
AIX print commands (enq, lp, or qprt), with the pdpr or lprafp command, or in the SMIT
Submit an InfoPrint Job
panel. - This flag and the -e flag, used together, are equivalent to the default-character-mapping document attribute on the pdpr command.
- -e
- Tells the db2afp command to use the EUC code page when converting the input file to an AFP data stream. If the input file is in the Korean language, you should always use -e. If the input file is in Traditional Chinese or Japanese, you should use -e if your input data is in EUC format.
- This flag and the -l flag, used together, are equivalent to the default-character-mapping document attribute on the pdpr command.
- InputFile
- Specifies the DBCS ASCII or EUC file that will be transformed to AFP. If you do not specify an input file, the db2afp command uses standard input.