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



I am writing a subfile which looks similar to the following.

Opt        Order    Qty    Reason    Notes
__        12345      6        __            Test Test Test
__        45656      8        __            Test To Test To

My program basically loads the subfile

Eg.           EXSR $WS01        (this formats the data and writes each
subfile record
                WRITE    S01C
                EXFMT    S01

Then I do READC S01 to determine subfile changes - the user may choose to
place a one in one or many of the option fields or select F4=List to prompt
on a reason code.

Has anyone got an example of how this is done.  I tried the SFLNXTCHG
indicator but in all the reading I have found it to be quite confusing and
am encountering multiple problems with not knowing which relative record
number I am at when selecting F4 etc.  Basically I am in a big mess.  I
think I have two separate problems here.  1)  I don't have the SFLNXTCHG
keyword processing correct in my RPG and 2)  I don't know how to process a
function key on a subfile.

All I want to do is be able to do an F4 on the reason and have the code
returned from a selection list to the correct subfile line selected from
and if there are any errors - eg the user enters in the wrong code then
that line is highlighted and not processed and the subfile is re-written
showing the errors and removing those items already processed.

Any help would be appreciated.

Regards


Kylea

Kylea White

Notice: This document should only be read by those persons to whom it is
addressed  and is not intended to be relied upon by any person without
subsequent  written confirmation of its contents. Accordingly, Focal
Systems Pty Ltd disclaim all responsibility and accept no liability
(including in negligence)  for the consequences of any person acting, or
refraining from acting, on  such information prior to the receipt by those
persons of subsequent written  confirmation. If you have received this
email message in error, please notify us immediately by telephone. Please
also destroy and delete the message from your computer. Any form of
reproduction, dissemination, copying, disclosure, modification,
distribution and/or publication of this email message is strictly
prohibited.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.