The variable used in %SWITCH must be long enough to hold the 8-character mask value.
Change the variable name or change the declare (DCL command) for the variable to have a length of at least eight, and then try the CRTCLPGM command again.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.