Error in subfile

Hi guys: Can any one please help me in that error?  Thanks
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

mustish1Author Commented:
Subfile works but why it showing error on subfctl
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.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
IBM System i

From novice to tech pro — start learning today.