ASPL Manual v 1.00
© 2024 by SetSphere.COM


13. 25
   purge purges set variables grplb from a set variable

 

logo

purge s1 [s2 .. sN] from somevar into targetvar       where s1 [s2 .. sN] somevar targetvar are set variables

purge s1 [s2 .. sN] from somevar       where s1 [s2 .. sN] somevar are set variables

When into is not specified then the resulting purged object is pushed on the top of the stack

purge  setoid  1*t          ins:H_H_H  ous:H_H_H

●  purge purges set variables grplb from a set variable

Use the purge operator to purge one or many datasets from a dataset. This set operator can be followed by one or many set variables to be purged from a set variable.

 

purge EXAMPLE

The following example shows how to purge two set variables from a set variable. In the following operation we will load the sample workspace WS1.

 

purge OPERATION

aspl WS1

①  aspl> merge a1 a2 a3 a4 into a1234
    (a1234 is assigned the merged groups of a1 a2 a3 a4)

②  aspl> purge a1 a3 from a1234 into pu24
    (pu24 is assigned a1234 after purging a1 a3)

③  aspl> merge a2 a4 into me24
    (me24 is assigned the merged groups of a2 a4)

④  aspl> equal pu24 me24
    (compare set equality of pu24 and me24)