× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Rick:

> I am trying to use a message subfile in a sub-procedure that 
> controls screen handling.  The messages aren't being 
> displayed.  My searches for examples only uncover sub-routine 
> examples.  Using a sub-procedure changes the call stack so 
> it's not the same.  I'm currently working on variations of 
> the SFLPGMQ key word.  If something doesn't work soon I'm 
> going to have to give up and rewrite it using sub-routines.
> 
> Has anyone done this?  Is so would you be willing to share 
> some example code or explain how you got the message sub-file 
> and program message queue in sync?  


You need to define your SFLPGMQ variable as 276 bytes (instead of 10),
and use a qualified procedure name. ie:


Bytes           Value
------  -------------------
1..256  ILE Procedure name
257..266        ILE Module name
267..276        ILE Program name

All values are left adjusted, padded with blanks.

I can dig up an example if you really need one, but all you'd see is
some code retrieving the module/pgm names from the PSDS, and loading the
SFLPGMQ variable accordingly.

This is documented in the Infocenter:

http://publib.boulder.ibm.com/iseries/v5r2/ic2924/index.htm?info/rzakc/r
zakcmst02.htm

Scan down the page to the SFLPGMQ keyword.



Regards,

John Taylor




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.