|
Jim Langston wrote: >I have a report to generate that has quite a >bit of text on it. A whole paragraph, basically. > >My question is, how do you feel would be the >best way to get this long text data into my >program to print on the page? Whether using O specs or an external printer file I would store the text in a file (makes changes to the text easy) and set up a read/except (or write) loop. Make the file's record length equal to the width of the space you have on the printout (eliminates worries about formatting in the program.) I'd name it the same as the program. You can "test print" your text with DSPPFM. Put the code in a subroutine, add checking for overflow and you will never have to touch it again. Buck Calabro Aptis; Albany, NY "Advice worth every drachma you paid!" Billing Concepts Corp., a NASDAQ Listed Company, Symbol: BILL +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.