Non-Zero Return Codes
If ACIF receives a non-zero return code from any exit program, ACIF issues
message 0425-412 and terminates processing.
Attributes of the Input Print File
ACIF provides information about the attributes of the input print file in a data
structure available to ACIF’s user exits. Figure 18 shows the format of this data
structure.
typedef struct _PFATTR /\ Print File Attributes \/
{
char cc[3]; /\ Carriage controls? - "YES" or "NO " \/
char cctype[1]; /\ Carriage control type - A(ANSI), M(Machine), Z(ASCII) \/
char chars[]; /\ CHARS values, including commas (eg. GT12,GT15) \/
char formdef[8]; /\ Form Definition (FORMDEF) \/
char pagedef[8]; /\ Page Definition (PAGEDEF) \/
char prmode[8]; /\ Processing mode \/
char trc[3]; /\ Table Reference Characters - "YES" or "NO " \/
} PFATTR;
Figure 18. Sample Print File Attributes C Language Header
The address of the control block containing the following parameters is passed to
the user exits:
cc (Bytes 1–3)
The value of the cc parameter as specified on the acif command. ACIF uses
the default value if this parameter is not explicitly specified.
cctype (Byte 4)
The value of the cctype parameter as specified on the acif command. ACIF
uses the default value if this parameter is not explicitly specified.
chars (Bytes 5–24)
The value of the chars parameter as specified on the acif command, including
any commas that separate multiple font specifications. Because the chars
parameter has no default value, this field contains blanks if no values are
specified.
formdef (Bytes 25–32)
The value of the formdef parameter as specified on the acif command.
Because the formdef parameter, has no default value, this field contains
blanks if no value is specified.
pagedef (Bytes 33–40)
The value of the pagedef parameter as specified on the acif command.
Because the pagedef parameter has no default value, this field contains blanks
if no value is specified.
prmode (Bytes 41–48)
The value of the prmode parameter as specified on the acif command.
Because the prmode parameter has no default value, this field contains blanks
if no value is specified.
74 ACIF User’s Guide