SFLNXTCHG keyword in subfile record

95 pts.
Tags:
SFLNXTCHG
Subfile
I am using SFLNXTCHG Keyword in my SubFile Record Format level in Display File. Here I am using this for reading the changing records for more than 1. When I am using READC Operational code for second time to read the changed record for the same record It is reading , but I should not read. Then Physical File I have used in Update mode. Like this:
----------- F EMPP001 UF E K DISK C EXFMT EMPCTL C EXSR $UPD C*********** C $UPD BEGSR C READC EMPSFL 92 C DOW *IN92=*OFF C MOVE FLD002 DS1 C KEY1 CHAIN EMPREC 93 C N93 MOVE FLD003 EMPNAM C N93 UPDATE EMPREC C READC EMPSFL 92 C ENDDO C ENDSR
Here after Loading records into Subfile Buffer I will display using 2nd line from the above source. Then I am going into $upd subroutine. Main part for this question only I put here. Thanks in Advance to help in this regards.
ASKED: April 19, 2009  12:31 PM
UPDATED: June 24, 2013  6:56 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi,

If you use SFLNXTCHG it means that every record in the subfile is marked as changed, whether you have changed it or not. Therefore your READC will read every record in the subfile. If you don’t use SFLNXTCHG then READC will only read the records that you change.

Regards,

Martin Gilbert.
///////////////////////////////////////////////////
Sflnxtchg can work like you probably want it to, setting some records so the next cycle of READC will find them.

1. SFLNXTCHG must have an indicator associated with it. If it doesn’t have an indicator all records will be used by readc every cycle.

2. When you readc or chain a sfl record and want a SFL record to be availabe for the next cycle of READC set the indicator so that SFLNXTCHG is in effect and then update the record. Otherwise when you write or update the SFL record make sure you have the indicator set of SFLNXTCHG is not in effect.

Phil

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • LBurkett99
    I use SFLNXTCHG in data-entry programs. When a record does not pass all edit checks I set on the indicator associated with the SFLNXTCHG keyword as part of the edit-error processing. This ensures that I will read that record and edit it again even if the operator does not correct the error. Good Luck, Leo Burkett
    830 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following