This example defines a pset, makes it current, then cycles through its members, making each one the current set in turn:
(prism all) define pset foo 0:3 (prism all) pset foo (prism foo) cycle (prism 1) cycle (prism 2) cycle (prism 3) cycle (prism 0)