Pau*_*idt 1 github sas include sas-macro
我正在尝试直接从 github url 运行 SAS 文件(其中包括 % 宏)。我在 blogs.sas.com 上找到了这篇文章,它似乎给了我解决方案。不幸的是,我无法让它发挥作用。
我想要运行的 .sas 文件存储在 github 上。
filename _inbox "%sysfunc(getoption(work))/Macro H2_Piepho.sas";
proc http method="get" url="https://github.com/SchmidtPaul/HeritabilityScripts/blob/master/SAS/MACRO%20H2_Piepho.sas"
out=_inbox;
run;
%Include _inbox;
filename _inbox clear;
Run Code Online (Sandbox Code Playgroud)
8418 %Include _inbox;
8425 +<!DOCTYPE html>
-
180
WARNING: Apparent symbolic reference AMP not resolved.
WARNING: Apparent symbolic reference AMP not resolved.
WARNING: Apparent symbolic reference LT not resolved.
WARNING: Apparent symbolic reference GT not resolved.
WARNING: Apparent symbolic reference LT not resolved.
WARNING: Apparent symbolic reference GT not resolved.
WARNING: Apparent symbolic reference AMP not resolved.
WARNING: The quoted string currently being processed has become more than 262 characters long.
You might have unbalanced quotation marks.
WARNING: The quoted string currently being processed has become more than 262 characters long.
You might have unbalanced quotation marks.
ERROR: The token currently being processed is in an incomplete state. You might have an
unbalanced single quoted string or a token exceeding the maximum length of 65535
characters.
9661 + <li><a
9661!+href="/SchmidtPaul/HeritabilityScripts/blame/7a18272000de0cfede86ae70a012ef581e95be3d/SAS
9661!+/MACRO%20H2_Piepho.sas" class="dropdown-item js-update-url-with-hash"
------
49
9661!+id="js-view-git-blame">View git blame</a></li>
ERROR 180-322: Statement is not valid or it is used out of proper order.
NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS
release. Inserting white space between a quoted string and the succeeding
identifier is recommended.
9662 + <li><a href="/SchmidtPaul/HeritabilityScripts/issues/new" class="dropdown-item"
------
49
9662!+ id="js-new-issue">Open new issue</a></li>
9671 + <button type="button" data-facebox="#jump-to-line" data-facebox-class="linejump"
----------------------
---------------
----------------------------------
49 49
49
9671!+data-hotkey="l" class="d-none">Jump to Line</button>
WARNING: Apparent symbolic reference HELLIP not resolved.
WARNING: Apparent symbolic reference COPY not resolved.
NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS
release. Inserting white space between a quoted string and the succeeding
identifier is recommended.
Run Code Online (Sandbox Code Playgroud)
预先感谢您的帮助!
您可以proc http使用语句的url 访问方法filename来执行此操作,而无需使用语句,例如如下所示:
filename bizarro url
"https://raw.githubusercontent.com/allanbowe/BizarroBall/master/bizarroball.sas";
%inc bizarro;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
863 次 |
| 最近记录: |