If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
SFLCLR removes all the records in a subfile and SFLINZ fills the subfile with records that have the default value for all of the fields. SFLRNA makes the records output with SFLINZ inactive but they are still there. Since records are in the subfile when using SFLINZ, they can be displayed with SFLDSP. See the manual for a more detailed explanation.
"Inactive" means just what the SFLRNA documentation says that it means:
Your program cannot send an input operation to an inactive subfile record. Issuing a get-next-changed operation to one of the subfile records returns the record only when the record has become active and has been changed.
Your program cannot send output operations to active records (SFLRNA not specified). It must send update operations. Also, your program cannot send update operations to inactive records (SFLRNA specified). It must send output operations.
The records exist in the subfile, but your program can't read any of them back in unless they are activated by one of the documented actions.
Tom
There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors.
Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
From the DDS-Display File manual under the SFLRNA keyword:
Subfile records are not considered active unless one of the following
conditions occurs:
1. Your program sends an output operation to the subfile record format, placing data in one of the subfile
records. The subfile record becomes active but is not considered changed unless the SFLNXTCHG
keyword is also in effect.
2. After your program displays the subfile, the workstation user types data into subfile records. The
records typed in become active and changed.
I've never had to use the SFLRNA keyword. Is there a specific problem that you're trying to solve?
Edit: I wrote this last week and forgot to post it. Thanks to Tom for providing an answer.
Comment