IDMSRSTT SETPTR initialization
search cancel

IDMSRSTT SETPTR initialization

book

Article ID: 135198

calendar_today

Updated On:

Products

IDMS IDMS - Database

Issue/Introduction

When using the SETPTR macro to add new pointers, to what value does the new pointer get assigned?

Environment

Release : All supported releases.

Component : CA IDMS/DB

Resolution

There are two different ways to tell SETPTR to add a new pointer.

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 will indicate that the record is not a member of the set.
Typically, a user-program would have to be used to connect the member records to the appropriate owner.

Additional Information

IDMSRSTT SETPTR: https://docops.ca.com/ca-idms-ref/19/en/utilities/idmsrstt-macro-statements/idmsrstt-setptr