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.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.