246 IBM Content Manager OnDemand Guide
/************************************************/
/* Relocate attribute qualifier triplet X'80'   */
/************************************************/
    for (i=40; i>30; i--)
       exitstruc->record[i] = exitstruc->record[i-2];
/************************************************/
/* Change mmddyy to mm/dd/yy                    */
/************************************************/
       exitstruc->record[30] = exitstruc->record[28];
       exitstruc->record[29] = exitstruc->record[27];
       exitstruc->record[28] = 0x61;
       exitstruc->record[27] = exitstruc->record[26];
       exitstruc->record[26] = exitstruc->record[25];
       exitstruc->record[25] = 0x61;
/**********************************************/
/* record length has increased to 41 (was 39) */
/**********************************************/
       exitstruc->recordln = 41;
       }
     exitstruc->request = IDX_USE;
     }
   return( 0 );
}
11.2.4  Output record exit
Use the output record exit to modify or ignore the records that ACIF writes to the output 
document file. The program is started by the ACIF outexit parameter, and it gives control to 
the user program before a record (which can be a Structured Field or can be line data) is 
written to the output (.out) file.
Example 11-2 shows a sample output exit program that deletes records from the output file. 
This program checks each Structured Field to determine whether it is an AFP record. If the 
record does not begin with Hex 5A, the exit program instructs ACIF not to use this record.
Example 11-2   Sample ACIF output exit program
#define _c_ACCT_OUT
/*********************************************************************/
/*                                                                   */
/* MODULE NAME: ACCT_OUT.C                                           */
/*                                                                   */
/*                                                                   */
/* SYNOPSIS:  ACIF Output Exit                                       */
Important: The ACIF output file can be in either Line Data or AFP format. If the ACIF 
output file is in AFP format, it is important to understand the structure of AFP before you 
write or modify an output exit.