Midrange News for the IBM i Community


Posted by: raynesnf
Problem with SFLDROP and 132 DSPSIZ
has no ratings.
Published: 25 May 2016
Revised: 25 May 2016 - 489 days ago
Last viewed on: 25 Sep 2017 (1084 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

Problem with SFLDROP and 132 DSPSIZ Published by: raynesnf on 25 May 2016 view comments(2)

Hi!  I'm trying to change an existing program that contains the SFLDROP keyword.  There are actually 4 lines in the subfile.  The users request is to move the 2nd subfile line up onto the first line of the subfile so that the subfile would now be 3 lines.  I have done that and made the screen 132.  I haven't changed anything else in the subfile.  The screen is now not acting correctly.  The SFLSIZ is 16 and the SFLPAG is 3.  Previously, when the screen was intially brought up, 15 records would show in the subfile.  If F03 was pressed, there would be 3 records on the screen and each record displayed all 4 lines of the subfile.  With the changes that I've made, when the screen intially comes up only 3 records are showing in the subfile and they are records 13, 14 and 15.  I can page up to see records 1-12.  If I page down from the 3 record screen, the next screen shows 6 records, the next one shows 9 records.  I'm beginning to wonder if SFLDROP can be used with a 132 display.  Any help that you can provide would be greatly appreciated.  Thanks!  Traci

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS

(Sign in to Post a Comment)
Posted by: DaleB
Premium member *
Reading, PA
Comment on: Problem with SFLDROP and 132 DSPSIZ
Posted: 1 years 4 months 4 days 3 hours ago

Show us the source, please. For starters, we need to see the SFL and SFLCTL records. If any other records are on the display at the same time, include them too.

Posted by: BrianR
Premium member *
Green Bay, WI
Comment on: Problem with SFLDROP and 132 DSPSIZ
Posted: 1 years 4 months 4 days 1 hours 39 minutes ago

The SFLPAG value should be 4 since there are now 4 unfolded subfile lines that can fit on a page.  The reason that the initial display of the subfile shows records 13, 14, and 15 is probably because you have 15 in the subfile record number variable that is defined with the SFLRCDNBR keyword.  Change that to 1 and it should work if my guess is correct.