"ERROR 22-7: INVALID OPTION NAME DCLAS" occurs if DATACLAS or MGMTCLAS values contain special characters


If your System Managed Storage (SMS) DATACLAS or MGMTCLAS values contain special characters and you use these values in a LIBNAME or FILENAME statement, you might receive a syntax error such as the following:

89 + LIBNAME WEEK "physical-data-set-name"
90 + DISP=(NEW,CATLG,DELETE) DATACLAS=#DCLAS MGMTCLAS=#MCLAS;
                                       ______
                                       22

ERROR 22-7: INVALID OPTION NAME DCLAS.

To force SAS to see the value as a single character string, enclose it in single (') or double (") quotation marks.