× 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.



Good Question. !

I have had the same problem a few times .... this is how I resolved my problems

(1) Write all your Record Formats .  Write the Format for Later Read (EXFMT)
      last.    Interrogate the AID byte immediatly and save it in a workfield 
for
      reference at other time(s).

(2)  RPG/400 and RPG IV Support More than One Display File In an Interactive
       Program ....
       Have the Command Key Formats in a separate Display File.

(3)  Next tiome you have an opportunity, let IBM know that we need the
       INFDS information in some sort of Array ( * ) with Variable Lenght
       where you can find all of the goodies for EVERY FORMAT used
       in your program

Best of luck to you                               Jorge Moreno / Woodbury - New 
York

Thuis was the question : 
-----------------------------------------------------------------------------------------------------------

prowakd@emi.com wrote on 06/17/98 01:45:28


,
I have a data structure that I use to map the pertinent fields from the
INFDS
when I use a WORKSTATION file.  I have the AID byte defined as KEY.
I also have the hex values of the function keys defined so that I can write
     DOU  KEY = EXIT
or
     IF   KEY = PAGEDOWN
etc...
I have a subfile, MST_SFL, which displays master records for selection.
Before I EXFMT MST_CTLSFL, I WRITE CMD_KEYS, where CMD_KEYS
are the command keys that are functional for this specific subfile.
Well, after the user selects a master rec, I use DTL_SFL to display
detail recs.  With DTL_SFL, I WRITE CMD_KEYS2, offering some
additional command keys.  When a user exits from DTL_SFL,
KEY = EXIT (the AID byte = X'33').  I set KEY = '  '.
I then go back to the master subfile, and 1st I write CMD_KEYS,
Well, after the WRITE CMD_KEYS,
the AID byte is once again = X'33'.  So my application ends, as if the
user hit EXIT within both subfiles.  It seems like the AID byte in the
file's buffer (or wherever INFDS is maintained), keeps its last value.
How can I get around this, so that writing the CMD_KEYS doesn't
cause my application to end prematurely?
TIA
Dave


+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.