Error in subfile

Posted on 2014-10-15
Medium Priority
Last Modified: 2014-10-21
Hi guys: Can any one please help me in that error?  Thanks
Question by:mustish1
  • 2
LVL 27

Expert Comment

ID: 40383621
As the compile listing says, you have a CPD7817 error. What problem are you having with that?


Author Comment

ID: 40384109
Subfile works but why it showing error on subfctl
LVL 27

Accepted Solution

tliotta earned 2000 total points
ID: 40386062
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.


Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Configure external lookups on for external mail flow on Exchange 2013 and Exchange 2016.
Seizing the Operation Master Roles in Windows Server 2016 in case of FSMO holder failure.
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
The video provides a quick and easy steps to migrate MBOX file to well known Outlook PST and Office 365. Besides this, it also supports and migrates more than 20 email clients of MBOX which include AppleMail, Opera, Thunderbird and SeaMonkey effortl…
Suggested Courses

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question