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 |
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.