Hello Doug,

Am 10.10.2023 um 00:12 schrieb DEnglander--- via RPG400-L <rpg400-l@xxxxxxxxxxxxxxxxxx>:

Yes, I am using ILERPG with DDS and the DDS has the WINDOW() keyword in it.

Sorry to have overlooked the WINDOW() keyword.

I understand about being able to have multiple fields per line and conditioned by indicators. That is not my question.

My question is: I want to know if it is possible to be able to use SFLMSGRCD and have it be placed on two different rows of a subfile depending on *DS3/*DS4

Looking closer at SFLMSGRCD, it needs a parameter where you specify the first line of SFL.

One way to do this:

You probably know how to pass variables programmatically from code to a DSPF?

Example in your referenced DDS:

A R RCDMSG SFL SFLMSGRCD(&LINENUM)
A LINENUM 2S 0H

And in your referencing application, you have a new implicit variable LINENUM to use. Note that with this you'll in fact get one LINENUM per record in your SFL. Not sure how the DDS compiler will handle this?

Personally, I have experienced that SFLs on screens allowing *DS3 and *DS4 can be tricky at times.

I hope I got it straight this time.

:wq! PoC




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.