I have a table of data cleaning rules in one excel sheet, with variables: table_name, statement, like the following: table_name statement ------------------------------------ a if ..... then ..... b if birth_date=. then birth_date=input(substr(id,3,8)),yymmdd10.) The excel file will be modifed by our customer, new data cleaning rules will be added or modified into it. During the ETL process, all rules will in the xls file will be loaded and checked syntax, and then take effect by a SAS macro. The question is: for an undeclared vairable in a data set. the substr function does not give an error message showing the varible doesn't exist, but create a new one. so the above step of syntax checking will mleiss some errors. Thanks!
... View more