dumpafp

dumpafp interprets the AFP codes in an AFPDS or AFP mixed print stream to create a readable file.

Syntax

dumpafp [-a -c -e -h -i -n -p -t –v -x] file

Note: The following dumpafp parameters are common switches that perform the same functions as parameters of the <RECORD> tag: -a, -c, -e, -i, -p, -t. Refer to the EngageOne™ Enrichment Language Reference Guide for more information.
Parameter Description Default
-a= One of the following to determine if AFP records are terminated:
  • YAFP records are terminated with characters specified in the -t parameter.
  • N — AFP records are not terminated.
Y
-c= The text format of the print stream, as follows:
  • E — Text records use the EBCDIC character set.
  • A — Text records use the ASCII character set.
E
-e= The byte order in both the blocking length and record length indicator, as follows:
  • B — The length indicator is coded with the most significant byte first. This is commonly called Big Endian.
  • L — The length indicator is coded with the least significant byte first. This is commonly called Little Endian.
B
-h Displays help for the utility.
-i Indicates that the record length indicator includes its own length and the length of the record. If you do not use -i, the record length indicator includes only the length of the record.
-n Numbers the output lines.
-p= The length of the record length indicator, as follows:
  • 2 — The first two bytes of each record comprise the record length indicator.
  • 4 — The first four bytes of each record comprise the record length indicator.
2
-t= Specifies the terminator character(s) (hexadecimal codes), separated by commas. DOS: D,A

UNIX: A

-v Displays the verbose mode for AFP explanations.
-x Indicates that transparent text in PTX records is in ASCII format.
file The name of the input file.

Example

dumpafp -c=A -t=A unix.afp

In this example, dumpafp is to display the input unix.afp. The arguments indicate that the input file is in ASCII format and that each record is terminated with X'0A' (an ASCII line feed).