InterviewSolution
Saved Bookmarks
| 1. |
what is the difference between |
|
Answer» The tranwrd function helps in the replacement of a string in a char variable. We can reverse the text/values in SAS using tranward function. It has many functions LIKE reversing, REPLACING ETC. For example – Converting the multiple occurence of a string; data x; input name$; datalines; highhigh high cc ; run; data a; set x; name=tranwrd(name,'high','hi'); run; proc PRINT data=a; run;output – Obs name 1 hihi 2 hi 3 cc |
|