One can %include SAS code (1) without downloading as follows.
/*a little delay*/
filename i url "https://raw.githubusercontent.com/junyongkim/sas/master/sganno/usrecm.sas";
%include i;Or (2) the same code after downloading as follows.
/*no delay*/
filename j temp;
proc http url="https://raw.githubusercontent.com/junyongkim/sas/master/sganno/usrecm.sas" out=j;
run;
%include j;I found that (1), unlike (2), experiences a little but clearly noticeable delay regardless of the Internet connection speed? Why is (1) a bit slower than (2)?
You might try restarting SAS and running the code in the opposite order.
Sometimes you get little, or not so little, differences because something is cached in the computer memory. You don't say exactly where you encounter the difference.
I ran the code in the reverse order and the Proc means step showed a notable decrease in "real time" and "user cpu time" in the second step.
As mentioned, when comparing performance, always run the steps to compare in various sequences.
Also, it might that the procedure http being more recent, it is better tuned than the older filename url device.
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!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.