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.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.