I'm aware that a user changing a record in a subfile and programmatically issuing an update to a subfile record with the SFLNXTCHG keyword active will set on the modified data tag. I am not exactly certain about each of the following:
READC (I'm fairly sure this sets off the tag)
CHAIN (no clue here)
WRITE with SFLNXTCHG active
UPDATE with SFLNXTCHG not active (I'm not certain this can happen unless readc or chain does not effect a set tag)
Any enlightenment would be appreciated.
Pinned topic What turns on/off the modified data tag on a subfile record?
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-04-16T18:16:33Z at 2012-04-16T18:16:33Z by egower
barbara_morris 120000DX5W385 Posts
Re: What turns on/off the modified data tag on a subfile record?2012-04-16T17:40:57ZThis is the accepted answer. This is the accepted answer.Hi Ed, I assume you're asking this related to Open Access. The SFLNXTCHG keyword is completely transparent to RPG, managed and used entirely within data management, so I don't have any idea how or when it's set.
For this particular question, you might have more luck finding someone who knows how that keyword works if you post your question in the more general IBM i forum.
To help those folks understand your question, here is the mapping between the RPG subfile opcodes and data management operations:
READC is "get-direct" with options _OPT_GETD, _OPT_DATA_AR_NORM, and _OPT_NXTMOD
CHAIN is "get-direct" with options _OPT_GETD and _OPT_ABSRRN
WRITE is "put" with option _OPT_PUT
UPDATE is "update" with option _OPT_UPK_RLSRCD
egower 2700058NCW7 Posts
Re: What turns on/off the modified data tag on a subfile record?2012-04-16T18:16:33ZThis is the accepted answer. This is the accepted answer.
- barbara_morris 120000DX5W