Aug 8, 2006
Using Static (Fixed) Text in a PRINTLINE Command
Question:
I have defined several PRINTLINE commands in my page definition, and I am also using the FIELD subcommand to place data and static text on the page. Several of the PRINTLINE commands have FIELD commands that place only static text and no input data. I am having difficulty getting all of the input data fields to format correctly. Can you tell if I am missing something in my commands?
Answer:
When using the fixed text option with a FIELD subcommand, it is important to remember that there is always a relationship between any PRINTLINE command and the actual input data records. Every PRINTLINE command in your page definition must have a corresponding record in the input data file. If you specify both a static text field and an input data field under the same PRINTLINE command, they are both associated with the same input data file record. However, if all the FIELD commands under a PRINTLINE command specify static text, the corresponding input record will be discarded and not used. If this is your circumstance then you should ensure that your generating program will insert a blank record into the input data file to ensure that the correct relationship between input data records and PRINTLINE commands remains intact.
Check out the Page Printer Formatting Aid (PPFA) reference materials available from IBM at:
http://www.ibm.com/Search/?q=S544-5285&v=11&lang=en&cc=zz&Search.x=37&Search.y=11 .
and
If you would like some additional information on PPFA Commands, or
If you would like additional information on AFP Tips and Techniques, please feel free to contact COPI at: 1-888-999-COPI.
Or, you can also view the archive of past AFP related articles by clicking here.