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.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.