The ALPHABETIC class of characters defined by the ALPHABETIC class test consists of the 26 uppercase letters and the space. The 26 lowercase letters are not considered alphabetic.
MOVE "AbC dE" TO PIC-X6. IF PIC-X6 IS NOT ALPHABETIC THEN DISPLAY "CMPR2".