This page is a discussion on the mentioned topic. Most of the answers are in their original posted form, including any technical/spelling/grammatical errors. No guarantees are expressed or implied. :-)
Comments, corrections, concerns about this tip?
I am trying to use the SFLMODE keyword in an ILE program to keep my subfile in Fold/Truncate mode while I page down through my subfile. Does anyone have any examples of how to use this in RPG ?
Answer(s):
Here is a short example:
DSPF:
SFLMODE(&FIELD1)
N59 SFLDROP(CF14)
59 SFLFOLD(CF14)
RPG:
In your *INZSR (or where else you want) set the FIELD1 to *ON.
In your dspf-routine:
EVAL *IN59 = (FIELD1=*OFF)
EXFMT xxx
...
...
...
Note: CF14 is the key for fold/trunc. The field FIELD1 (or any other name)
must be 1 alpha. You can replace the indicator 59 with any other ind.