Standard Library procedure that creates the system variable !Weekend_List, which is used in calculating Date/Time compression.
For instance, the routines DT_SUBTRACT, DT_ADD and DT_DURATION, can use the Compress keyword which, if set, excludes weekends from their results. In addition, the PLOT procedure uses the Compress keyword to remove weekends from a plot.
The values in the input string day_names must match or be a substring of strings in the !Day_Names system variable. By default, !Day_Names contains:
PRINT, !Day_Names
Sunday Monday Tuesday Wednesday Thursday
Friday Saturday
CREATE_WEEKENDS, 'Sat'
PRINT, !Weekend_List
0 0 0 0 0 0 1