5 pts.
 RPG window subfile
Can I dynamically alter the number of lines displayed in a window?

Software/Hardware used:
rpg400
ASKED: September 22, 2011  4:50 PM
UPDATED: March 31, 2012  3:40 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Hi Olddanitk

No, absolutely not, never .. except when the answer is Yes!
Is this a trick question?

No,
- a subsile can only be displayed in one # records (except fold/drop)
- SFLPAG is a constant and there is only one of these in a sufctl record.

Yes
-you can display different SFL’s / SFLCTL’s in a window.
- the sflctl must fit within the window or you will not be able to compile the display file.

Phil

 44,130 pts.

 

If the question is specific about DDS and subfiles as the question title says, the general answer is “No. Option indicators are not allowed for SFLPAG() and the value is a literal constant, not a variable.” If the question is more general, as in the text of the question, the answer is “Yes or no, depending on what is meant by a window.”

When ‘a window’ is created, it has a number of lines that it contains. You can display as many lines in the window as the window can hold. If the window is ten lines deep, it can hold ten lines, not 15 or 20 lines.

But there are ways of creating windows — on green-screens — that users may move and/or resize. The Dynamic Screen Manager (DSM) APIs provide such services. But those aren’t “subfiles”.

Tom

 107,915 pts.