: You can manipulate data with whatever functions and logic are needed and available. E.g., while I'm not sure exactly which parts you are trying to change, but the following should give you a clue as to some of the possibilities: \ data have (drop=j alternate); length name var_new alternate alternate_New $30; input name &; do _n_=1 to countw(name)-1; var_New=catx(" ",var_New,propcase(scan(name,_n_))); alternate=upcase(scan(name,_n_)); do j=2 to length(scan(name,_n_)) by 2; substr(alternate,j,1)=lowcase(substr(alternate,j,1)); end; alternate_New=catx(" ",alternate_New,alternate); end; var_New=catx(" ",var_New,upcase(scan(name,_n_))); alternate_New=catx(" ",alternate_New,upcase(scan(name,_n_))); cards; DEVELOPING COUNTRY INDIA DEVELOPING COUNTRY RUSSIA DEVELOPING COUNTRY CANADA DEVELOPING COUNTRY china ; run;
... View more