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 |
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.