Attached the log 2 3 data test; 4 city=upcase(Rapid' - 388 4 ! city); ERROR 388-185: Expecting an arithmetic operator. 5 if substrn(city,1,1)="'" then 6 city=substrn(city,2); /* remove initial quote, if present */ 7 if substrn(city,length(city))="'" then 8 substr(city,length(city))=' '; /* remove terminal quote, if present */ 9 city=tranwrd(city,"'","''"); /* double remaining quotes */ 10 city=cats("'%",city,"%'"); /* add quoting and wildcards */ 11 call symputx('city',city); 12 run; 4 city=upcase(Rapid' - 76 4 ! city); ERROR 76-322: Syntax error, statement will be ignored. 13 data test; 14 city=upcase(Rapid'city); 15 if substrn(city,1,1)="'" then 16 city=substrn(city,2); /* remove initial quote, if present */ 17 if substrn(city,length(city))="'" then 18 substr(city,length(city))=' '; /* remove terminal quote, if present */ 19 city=tranwrd(city,"'","''"); /* double remaining quotes */ 20 city=cats("'%",city,"%' - 49 20 ! "); /* add quoting and wildcards */ NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release. Inserting white space between a quoted string and the succeeding identifier is recommended. 21 call symputx('city',city); 22 run;
... View more