AR220 - want to print each batch on a different page

 3 Replies
 0 Subscribed to this topic
 17 Subscribed to this forum
Sort:
Author
Messages
SYL
New Member
Posts: 3
New Member
    I would like to force the program to page break after each batch when printing the AR220 program.  Can the .rpt be modified to meet this need?  What else can be done?
    Ragu Raghavan
    Veteran Member
    Posts: 476
    Veteran Member
      Try adding $PGBRK in the group GN2-APH-BATCH-NBR (followed by a compile of course).
      SYL
      New Member
      Posts: 3
      New Member
        When I added the $PGBRK under GN2-APH-BATCH-NBR, it created an additional header page for each batch. I moved the $PGBRK under GN1-APH-COMPANY and it looks like that worked.

        Thanks.
        SYL
        New Member
        Posts: 3
        New Member
          I brought the change to Production, and it doesn't work the same way. I added the $PGBRK to the bottom of GN1-APH-COMPANY, but it did nothing. I then added it to the bottom of GN2-APH-BATCH-NBR, but now it prints a blank first page with just company heading and the remainder of the report is seperatd correctly by batch. I should also add that this is a custom program that we modifed to remove the front header page.