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 |
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.