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.
Software/Hardware used:
ASKED:
April 19, 2009 12:31 PM
UPDATED:
April 20, 2009 7:48 PM
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