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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.