Input record exit
The line-data transform provides an exit that enables you to add, delete, or modify records in the line-data input file. The program invoked at this exit is defined by the value of the inpexit keyword of the line2afp command.
This exit is called after each record is read from the input file. The exit can request that the record be discarded, processed, or processed with control returned to the exit for the next input record. The largest record that InfoPrint Manager can process is 32756 bytes. This exit is not called when the line-data transform is processing resources from directories.
Sample input record exit C language header contains a sample C language header that describes the control block that is passed to the exit program.
Sample input record exit C language header
/*********************************************************************/ /* INPEXIT STRUCTURE */ /*********************************************************************/ typedef struct _INPEXIT_PARMS /* Parameters for input record exit */ { char *work; /* Address of 16-byte static work area */ PFATTR *pfattr; /* Address of print file attribute info*/ char *record; /* Address of the input record */ unsigned short in_CCSID; /* input CCSID for translating @06a*/ unsigned short out_CCSID; /* output CCSID for translating @06a*/ unsigned short recordln; /* Length of the input record */ unsigned short reserved2; /* Reserved for future use */ char request; /* Add, delete, or process the record */ char eof; /* EOF indicator */ } INPEXIT_PARMS;