IBM S544-5285-01 Printer User Manual


 
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[2]; /ᑍ 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