READC & SFLNXTCHG READC and SFLNXTCHG are the two popular keywords used when working with subfiles. This short post explains what is the use of these two keywords. READC READC is used to Read the Changed Records in a Subfile. SFLNXTCHG SFLNXTCHG is used to mark the Records in a Subfile as Changed. SFLNXTCHG plays a Major role when there is a Subfile with Update capabilities. While processing the Subfile, Changed Records can be read using 'READC'. However, In most cases where Update is involved it is essential to validate the data before Update. Modified tag would be automatically turned off on a record when Program reads the Changed Record (using READC) for validation and wouldn't be able to read the record again for the actual UPDATE operation. This can be controlled using SFLNXTCHG Keyword. SFLNXTCHG can be used in two different ways. Use SFLNXTCHG Keyword without any indicator Control SFLNXTCHG Keyword with indicator. Using SFLNXTCHG without any indicator would mar
Code with PR - Technical tips on coding and more...