DEFINE VIEW command
See the following article for more information:
The DEFINE VIEW command allows you to create views from datasets by indicating a selection of variables, variable folders, and a filter to use.
By default, the views are created in the current folder regardless of the dataset used. You can also use CREATE VIEW FROM DATASET as an alternate command:
DEFINE VIEW FROM DATASET("my ds") FOLDERS "folder|path1", "folder|path2" VARIABLES alias_list FILTERED BY expression NAME "My view";