× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



hi..

Can u please tell me how do i calculate no of detail lines that would fit on the page through the rpg program. Also let me give u a brief idea of the program.

The text for the footer will change according to the parameters that are sent to the printer file program. So firstly i have to calculate the total number of lines for the different scenarios(eg if parameter 1 is sent then no of lines in the pf for case 1 would be 5, for case 2 would be 6 and so on, this could change) and then select the one with the maximum no of text lines. this number would then be my constant for the number of lines for the footer irrespective of any parameter tht is sent. And my footer would have to be written from a specific line number after calculating the no of lines to be left from the bottom .Also please tel me how do i hard code in the rpg program for the header/footer to start from a specific line number.?

So in such a situation do i design my printer file (inc;uding the footer) in the normal way i.e. through the STRRLU utility/ if so then how do i know the no of lines to leave for the footer?? because this would be calculated in the first time calculations in the rpg program.

Could you please give me a simple example for this.?

Thanx & Regards

Derek.


From: "Christen, Duane J." <dchristen@xxxxxxxxxxxxx>
Reply-To: RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>
To: "'RPG programming on the AS400 / iSeries'" <rpg400-l@xxxxxxxxxxxx>
Subject: RE: dynamic printer file
Date: Mon, 3 Jul 2006 08:34:39 -0500

You program would calculate the number of detail lines that fit on the page
and then as you write the detail lines you would count them. When the
counter reaches the detail line limit you would write you footer and header
for the next page, reset the counter and continue printing detail lines.

Duane Christen


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of derek gonsalves
Sent: Monday, July 03, 2006 4:46 AM
To: rpg400-l@xxxxxxxxxxxx
Subject: dynamic printer file


Hi...

I have to create a printer file program. Can someone please tell me how to
code a Rpg program for the following issue..
In the Rpg program I have to decide the number of lines for the footer
depending on the no of lines of text present in the pf i.e. the lines of the

footer are read from a pf.
Hence the no of lines in the footer can change.

How do i handle this.??


--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



NOTICE: This electronic mail transmission may contain confidential
information and is intended only for the person(s) named.  Any use, copying
or disclosure by any other person is strictly prohibited. If you have
received this transmission in error, please notify the sender via e-mail.



--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.