Example

Here is an example control file that extracts information from a print stream and writes it to a side file.
<input>
   <name> EXM1
   <file> H:\PrintStreams\INPUT1.afp   <! Input file.                >
   <type> AFPL A                       <! File is AFP line data.     >
   <document> 1                        <! Every document is 1 page.  >
   <field> %%Customer_Number K         <! Find the customer number.  >
     <location> 8 60 8
   </field>
   <field> %%invoice   K               <! Find the invoice amount.   >
     <location> 9 60 10
   </field>
</input>
<output>
   <name> MEMO
   <file> H:\Output\output1.afp        <! Output print stream.       >
   <sidefile>
     <file> H:\Sidefiles\sidefile1.txt <! Report file.               >
     <sidepart> %%Customer_Number 8 R ' '
     <sidepart> %%invoice   11 R ' '
     <sidepart> %%DOCUMENT_NO 5 R 0    <! Sequential document number.>
   </sidefile>
</output>