ASPL Programming ver 1.00
© 2024 Bassem W. Jamaleddine


13. 30
   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  setoid  1*t          ins:H_H_H  ous:H_H_H

●  Operator 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)