In COBOL, alphanumeric/string data is defined using PIC X(n) where n is the length. Since YYYYMMDD is stored as 8 characters, PIC X(8) is the correct definition. PIC Y, PIC M, PIC D are not valid COBOL picture clauses, and Pic date(...) is not standard COBOL syntax.