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.

AIX or Windows sample print file attributes C language header shows a sample C language header that describes the format of the AIX or Windows data structure.

AIX or Windows sample print file attributes C language header

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[20]; /*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;

The address of the control block that contains the following parameters is passed to the input record exit. For AIX and Windows, the address is passed by the first parameter.

cc(Bytes 1–3)
The value of the CC parameter as specified on the acif command or in the ACIF processing parameter file. 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 or in the ACIF processing parameter file. ACIF uses the default value if this parameter is not explicitly specified.
chars