While running the following program, the result from proc print & proc content: for 'address' length is 200 & value is '201 London drive' as well as for 'address1' length is 14 & value is '201 London fly'.
data abc;
address1='201 London fly';
run;
data abc;
set abc;
address=tranwrd(address1,'fly','drive');
run;
proc print data=abc;
run;
proc contents data=abc;
run;
SAS Output
201 London fly | 201 London drive |
SAS Output
address | Char | 200 |
address1 | Char | 14 |
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.