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.
This topic has been locked.
2 replies Latest Post - 2012-04-16T18:16:33Z by egower
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 120000DX5W383 PostsACCEPTED ANSWER
Re: What turns on/off the modified data tag on a subfile record?2012-04-16T17:40:57Z in response to egowerHi 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 PostsACCEPTED ANSWER
Re: What turns on/off the modified data tag on a subfile record?2012-04-16T18:16:33Z in response to barbara_morrisThanks Barbara. You assumed correctly. We finally got busy with our handler (we let it set for almost 2 years due to higher priorites) and experienced a problem related to subfiles that made me question how I was dealing with the modified data tag. I will repost in the other forum. I really apreciate your info on this and my prior post about the infsr.