Using the line-data transform user input record exits

apka2e
The apka2e input-record exit program translates data that is encoded in one code character set (CCSID) to another. You should use this exit when your job uses fonts such as GT12, which has code points that are different from your data file. The default translation is from ASCII (code set 00850) to EBCDIC (code set 00037) if the INPCCSID and OUTCCSID parameters are not specified on the line2afp command. INPCCSID specifies the input code page, and OUTCCSID specifies the output code page.

To execute the apka2e input record exit program, set the following keywords and values in your line-data transform keyword file. The line2afpparmdd keyword identifies the keyword file.

inpexit=/usr/lpp/psf/bin/apka2e
cc=yes
cctype=z

asciinp
The asciinp input-record exit program transforms an ASCII data stream into a record format that contains a carriage control character in byte 0 of every record. If byte 0 of the input record is an ASCII carriage return (X'0D'), byte 0 is transformed into an ASCII space (X'20') that causes a data stream to return and advance one line; no character is inserted. If byte 0 of the input record is an ASCII form feed character (X'0C'), byte 0 is transformed into an ANSI skip to channel 1 command (X'31') that serves as a form feed in the carriage-control byte.

To execute the asciinp input record exit program, set the following keywords in your line-data transform keyword file. The line2afpparmdd keyword identifies the keyword file:

inpexit=/usr/lpp/psf/bin/asciinp
cc=yes
cctype=z

asciinpe
The asciinpe input-record exit program translates data that is encoded in one code character set (CCSID) to another. You should use this exit when your job uses fonts such as GT12, which has code points that are different from your data file. The default translation is from ASCII (code set 00850) to EBCDIC (code set 00037) if the INPCCSID and OUTCCSID parameters are not specified on the line2afp command. INPCCSID specifies the input code page, and OUTCCSID specifies the output code page.

While the asciinp and asciinpe input-record exits do not recognize other ASCII printer commands, you can modify these exits to account for these:

  • backspacing (X'08')
  • horizontal tabs (X'09')
  • vertical tabs (X'0B')

For more information about using and modifying these programs, see the prologue of the asciinp.c source file that is provided with InfoPrint Manager in the /usr/lpp/psf/acif directory.