retain set statement

Hi all,

“retain set” statement :

I would like to know which “set” are in a current memory.
I would like to have the list , so that I can removed all.
Is it true that “release set” only works when you left the module?
is it true that when we logon to another library all the “set” are released?

We have some strange behavior with “set”, we use “set” to be compare to each other and sometimes after many operations we have bad result.

Is there a life time for a “set” ?

thanks for all,

I would like to know which “set” are in a current memory.

When you do a FIND (or a FIND NUMBER) you can RETAIN the set of ISNs that corresponds to the FIND (the ADABAS search command).

I would like to have the list , so that I can removed all.

Not sure what you mean. You can RELEASE sets individually (by name) or ALL.

Is it true that “release set” only works when you left the module?

Has been awhile since I tried this, but it used to be that RELEASE GLOBALS was the only RELEASE that worked this way. The RELEASE sets should be immediate.

is it true that when we logon to another library all the “set” are released?

Again, have not played with this in awhile, but I believe LOGON does get rid of saved sets; just write a simple program to test this; e.g.

FIND NUMBER VIEWA WITH NAME = ‘SMITH’
RETAIN AS ‘SETA’

logon to another library and have a program that does a FIND NUMBER …WITH ‘SETA’

Is there a life time for a “set” ?

Shouldn’t be. It is saved in Adabas, not Natural.

steve

Had a few minutes to test out my memory:

RELEASE SETS is indeed immediate. GLOBALS is the only RELEASE with a “delayed” effect.

LOGON to another library does indeed release held sets.

steve