Attributes of the line-data input file

Note: This data structure is provided for informational purposes only.
The line-data transform provides information about the attributes of the line-data input file in a data structure available to the line-data transform user-exits. Sample print file attributes C language header shows the format of this data structure.

Sample print file attributes C language header

typedef struct _PFATTR  /* Print File Attributes                 */
{
   char     c[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 containing these parameters is passed to the user-exits:

cc (Bytes 1–3)
The value of the cc keyword as specified with the line2afp command. The line-data transform uses the default value, yes, if this keyword is not explicitly specified.
cctype (Byte 4)
The value of the cctype keyword as specified with the line2afp command. The line-data transform uses the default value, z for ANSI carriage-control characters that is encoded in ASCII, if this keyword is not explicitly specified.
chars (Bytes 5–24)
The value of the chars keyword as specified with the line2afp command, including any commas that separate multiple font specifications. Because the chars keyword has no default value, this field contains blanks if no values are specified.
formdef (Bytes 25–32)
The value of the formdef keyword as specified with the line2afp command. Because the formdef keyword has no default value, this field contains blanks if no value is specified.
pagedef (Bytes 33–40)
The value of the pagedef keyword as specified with the line2afp command. Because the pagedef keyword has no default value, this field contains blanks if no value is specified.
prmode (Bytes 41–48)
The value of the prmode keyword as specified with the line2afp command. Because the prmode keyword has no default value, this field contains blanks if no value is specified.
trc (Bytes 49–51)
The value of the trc keyword as specified with the line2afp command. The line-data transform uses the default value, no, if this keyword is not explicitly specified.