Hi Haikuo, I try to wrap up your code in the macro, please see %MACRO check_upcase; data _null_; set sashelp.vcolumn; WHERE memname EQ 'ADAE' AND libname EQ 'DERIVED'; %IF upcase(name)NE name %then %DO; %put %SYSFUNC( CATT( WARNING: Please check the dataset check_upcase Some variable its not UPCASE)); %END; %MEND check_upcase; %check_upcase; Unfortunately come this error message, could you help me please The SAS System NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR ERROR: Required operator not found in expression: upcase(name)NE name ERROR: The macro CHECK_UPCASE will stop executing. 39 ;*';*";*/;quit;run; ____ 180 ERROR 180-322: Statement is not valid or it is used out of proper order. NOTE: The SAS System stopped processing this step because of errors. NOTE: DATA statement used (Total process time): real time 0.01 seconds cpu time 0.01 seconds
... View more