Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Private
  • Views: 117
  • Last Modified:

Error in subfile

Hi guys: Can any one please help me in that error?  Thanks
sfl.png
pf.txt
sflerrs.txt
rpgcode.txt
0
mustish1
Asked:
mustish1
  • 2
1 Solution
 
tliottaCommented:
As the compile listing says, you have a CPD7817 error. What problem are you having with that?

Tom
0
 
mustish1Author Commented:
Subfile works but why it showing error on subfctl
0
 
tliottaCommented:
It's because of just what the message says: "Value on SFLPAG keyword too large for display size." So, obviously, the SFLPAG value needs to be set smaller or the display size needs to be bigger.

The CUSCTY field is defined as 20 positions wide, and it's positioned at column 65 of the display. Since the display is only 80 positions wide, that makes the field want to continue on to a second line. If subfile rows take up two lines, then SFLPAG(15) says that the subfile has to cover 30 lines for each page. (15 records * 2 lines per record)

There are no displays that can handle 30 lines of a subfile.

You can define CUSCTY to be shorter on the display so that it doesn't try to wrap to a second line. Making it 15 positions wide should work. Or you might see if widening the display with DSPSIZ(*DS4) might work. Or you can set a smaller SFLPAG() value; looks like SFLPAG(9) might work.

Tom
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now