1,905 pts.
 Box in printer file
In my spool file there are different record formats. Each record format corresponds to each file data. Now I want to show the data from each file inside a box. If there are 5 files & each files has x records each, then I want to show 5 boxes and each box hold x records. I read about box keyword. But how to populate the co-ordinates of that? Is there a way to dynamically fetch the co-ordinates values?

Software/Hardware used:
AS400
ASKED: September 26, 2012  1:19 PM
UPDATED: September 26, 2012  2:13 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Does “x” change each time so the box has to change? — Tom

 108,055 pts.

 

Yes.. Number of records each file can have varies and box has to change accordingly.

 1,905 pts.

 

The BOX() keyword allows program-to-system fields to set the coordinates of the corners. You will have to do the programming to determine how far down a page the bottom corners are going to be based on how many rows of print you will have in each box. I don’t know if there’s any way to have a box start on one page and end on a different page. — Tom

 108,055 pts.

 

And do a quick test to make certain that the target printer will print the BOX.

 44,150 pts.