The declare command must follow the Program (PGM) command and precede all other commands.
Move the declare command immediately after the PGM command, or if the PGM command does not exist, move the Declare (DCL) command to be the first command in your source program. Then try the CRTCLPGM command again.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.