Data Dk;
X=5;
Y=7;
_iorc_=y;
y=x;
x=_iorc_;
Run;
Data Dk;
X=5;
Y=7;
_iorc_=y;
y=x;
x=_iorc_;
Run;
Same as any other temp variable. I used that bcoz i was lazy to write a drop statement for other regular temp variable
See https://communities.sas.com/t5/SASware-Ballot-Ideas/Create-a-new-function-SWAP/idi-p/327598 for solutions not using a third variable.
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!Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.
Find more tutorials on the SAS Users YouTube channel.