Midrange News for the IBM i Community


Posted by: WestCoastGuy
Help with SFLDROP, SFLFOLD
has no ratings.
Published: 28 Mar 2012
Revised: 23 Jan 2013 - 1519 days ago
Last viewed on: 22 Mar 2017 (4609 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.

Help with SFLDROP, SFLFOLD Published by: WestCoastGuy on 28 Mar 2012 view comments(3)

The program I am working on is a subfile that needs two lines on the subfile record for display. When I press the  command key to do the sfldrop, I get the error message - "Not able to display the record in truncated format". I get this message when running the RPGLE version, but when I run legacy written programs with the fold and drop, the display works and toggles between displaying  1 line and 2 lines with no issues.  There is no wrap around on the fields from one display line to the other.

Why am I getting that message?

 

Thanks in advance ! 

 

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

COMMENTS

(Sign in to Post a Comment)
Posted by: neilrh
Premium member *
Jackson, MI
Comment on: Help with SFLDROP, SFLFOLD
Posted: 4 years 11 months 25 days 5 hours 52 minutes ago

If you need two lines on your subfile record for display, why are you messing with SFLFOLD/SFLDROP - code the subfile output for 2 lines/record and go with that.

Posted by: WestCoastGuy
Premium member *
Comment on: Help with SFLDROP, SFLFOLD
Posted: 4 years 11 months 25 days 5 hours 50 minutes ago

User specifications is why they wanted the fold/drop

 

I'll let them know that they always need to see the second line of the data.

 

Thanks

 

Posted by: WestCoastGuy
Premium member *
Comment on: Help with SFLDROP, SFLFOLD
Posted: 4 years 11 months 25 days 5 hours 23 minutes ago

What caused that error message was having a variable start in position 1. After I moved it over to position 2, the sfldrop and fold worked just fime.

 

Whew !