ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

SFLNXTCHG keyword for subfile

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • SFLNXTCHG keyword for subfile

    Hi All
    Please tell me the significance of using SFLNXTCHG keyword in the subfile?

    Thanks
    Mohan

  • #2
    Re: SFLNXTCHG keyword for subfile

    From IBM;

    Code:
    Modifies the subfile record so that it is read on a get-next-changed  
    operation.

    PHP Code:
     A  21                                  SFLNXTCHG 
    You would then just use the ReadC against the subfile name.
    Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

    Comment


    • #3
      Re: SFLNXTCHG keyword for subfile

      When processing a subfile, usually you read any records that were changed by using the READC opcode. There are times when you want to make SURE a particular subfile record is processed again upon the next input from the screen. (Error correction, data validation etc.) By doing an update on the subfile record with the SFLNXTCHG keyword activated (by an indicator) you ensure that the record wil be read again once the screen has been displayed.

      Comment


      • #4
        Re: SFLNXTCHG keyword for subfile

        Hi Mohan!

        Hope you have got ur answer by seeing the earlier replies, just wanted to add that SFLNXTCHG is usually associated with an indicator that flags the subfile record as changed.
        Another point to remember is that this keyword is specified on the subfile format, not the subfile control format, because the SFLNXTCHG information will be unique to each record.

        Regards
        Manish Verma

        Comment

        Working...
        X