When using the SETPTR parameter of the IDMSRSTT macro to add new pointers, to what value does the new pointer get assigned?
Release: All supported releases.
There are two different ways to tell SETPTR what value to assign to a set pointer, new or otherwise.
IDMSRSTT SETPTR=(*,6)
This syntax is used when adding pointers to the owner record in a set. The * indicates that the new pointer will be initialized to the dbkey of the record itself - indicating that the set is empty.
IDMSRSTT SETPTR=(,7)
This syntax is used for adding any other pointers and it will be initialized to high values - x'FFFFFFFF'. This should be used on member records to indicate that the record is not a member of any instance of the set. Typically, a user-program would then have to be used to connect the member records to the appropriate owner.