Published on :
Macro EXTERNAL

Loading Macro Library from GitHub

This code is also available in: Deutsch Español Français
The program uses the URL access method of the FILENAME statement to create references to raw (.sas©) files hosted on GitHub. It then uses the %INC statement (alias for %INCLUDE) to execute this remote code, making the macros available for the current SAS© session. Note: Filerefs m16 and m17 are redefined at the end of the script, replacing previous definitions.
Data Analysis

Type : EXTERNAL


No data is directly manipulated. The script imports source code from 'raw.githubusercontent.com'.

1 Code Block
FILENAME
Explanation :
Declaration of file references (filerefs) pointing to the remote URLs of the macro scripts.
Copied!
1filename m1 url "https://raw.githubusercontent.com/ammarhm2020/SASmacros/main/tablen_032020_pharmasug.sas";
2filename m2 url "https://raw.githubusercontent.com/ammarhm2020/SASmacros/main/tablen.sas";
3/* ... définitions m3 à m17 ... */
4filename m16 url "https://raw.githubusercontent.com/ammarhm2020/SASmacros/main/mvmodels_032020_pharmasug.sas";
5filename m17 url "https://raw.githubusercontent.com/ammarhm2020/SASmacros/main/mvmodels_072020_web.sas";
2 Code Block
%INCLUDE
Explanation :
Execution of remote source code via previously defined filerefs to load macros into memory.
Copied!
1%inc m1;
2%inc m2;
3%inc m3;
4/* ... inclusions jusqu'à m17 ... */
5%inc m17;
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.