BookmarkSubscribeRSS Feed
Junyong
Pyrite | Level 9

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)?

2 REPLIES 2
ballardw
Super User

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.

ChrisNZ
Tourmaline | Level 20

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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 897 views
  • 0 likes
  • 3 in conversation