printer file in rpgle
750 pts.
0
Q:
printer file in rpgle
I've program described printer file..

how to code page break for program described printer file??



Software/Hardware used:
AS400
ASKED: Oct 27 2009  9:20 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
6540 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
On you 'F' spec for the printer use the keyword OFLIND.
Most people code it as OFLIND(*INOF)
Then in your calc specs, before you output to the printer, do a check if *INOF is on.
If yes, do heading, and set off the indicator.
Last Answered: Oct 27 2009  9:40 PM GMT by CharlieBrowne   6540 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Nutangujar   750 pts.  |   Oct 27 2009  11:00PM GMT

Thanks ..this prints the heading but to start this heading on a new page, what exactly is the condition…i think when the overflow indicator is on it should automatically start printing on the next page..but when i actually took the print outs to check this….it printed all those headings on the same page..

 

Nutangujar   750 pts.  |   Oct 27 2009  11:12PM GMT

actually i need to print record on next page when new employee number starts….
for this when i retrieve new employee number in the list, i switch on overflow indicator inOA and print the header…is this not sufficient to insert a page break between two diffrent employees print listing???

 

CharlieBrowne   6540 pts.  |   Oct 28 2009  12:48PM GMT

Check your skip before setting in your ourpur spec.
If you are getting two headings on the same page, you probably are using space before and not skip before.

 

Nutangujar   750 pts.  |   Oct 28 2009  1:53PM GMT

I have Skip before line as below in the program

OQSYSPRT E OA HDR2 1

the one indicates no. of skip before lines…..I set on OA indicator before I Except this line…..stil the header is printed on the same page and not next page..

 

Nutangujar   750 pts.  |   Oct 28 2009  2:14PM GMT

Instead of OA I used normal indicator 61 and it works…
Thanks…
Nutan.

 

WoodEngineer   2280 pts.  |   Oct 29 2009  4:37PM GMT

Nutan, Check how your program sets *IN61. The system will respond to indicators OA and 61 the same way, based on their settings. We have programs that use OA and OF to control advancing to a new page. Using a “normal” indicator is not what made your program work as you wish - it is the setting of *IN61.

 
0