<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to execute SAS code from GIT repository in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-execute-SAS-code-from-GIT-repository/m-p/835385#M330276</link>
    <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19879"&gt;@Quentin&lt;/a&gt;&amp;nbsp;and &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/28909"&gt;@AllanBowe&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the quick response!! we have tried executing the SAS code from SAS Studio, but getting an error which says "Invalid reply received from the HTTP server". Please help us to resolve this error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vimal08_0-1664265061525.jpeg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75614i5D53D10394B33964/image-size/large?v=v2&amp;amp;px=999" role="button" title="Vimal08_0-1664265061525.jpeg" alt="Vimal08_0-1664265061525.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, we have tried installing NVM to execute the commands to run SAS code from GIT using sasjs/cli, but there also we are getting an error. Below is the snapshot of the error, please help me to resolve this issue as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vimal08_1-1664265716068.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75615iD2168C77939CDD19/image-size/large?v=v2&amp;amp;px=999" role="button" title="Vimal08_1-1664265716068.png" alt="Vimal08_1-1664265716068.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!!&lt;/P&gt;</description>
    <pubDate>Tue, 27 Sep 2022 08:05:22 GMT</pubDate>
    <dc:creator>Vimal08</dc:creator>
    <dc:date>2022-09-27T08:05:22Z</dc:date>
    <item>
      <title>How to execute SAS code from GIT repository</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-execute-SAS-code-from-GIT-repository/m-p/835082#M330120</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have our SAS codes on GITHUB in one of the repositories, and we have already figured out how to clone the repository, and pushing, pulling and stashing the SAS files in studio and EG. But we are trying to figure out a way, where we can execute the SAS codes from GIT itself, without placing the code in any of client SAS server. Please help us to figure out the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your help will be highly appreciated!! Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2022 20:36:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-execute-SAS-code-from-GIT-repository/m-p/835082#M330120</guid>
      <dc:creator>Vimal08</dc:creator>
      <dc:date>2022-09-25T20:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute SAS code from GIT repository</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-execute-SAS-code-from-GIT-repository/m-p/835086#M330121</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/28909"&gt;@AllanBowe&lt;/a&gt;&amp;nbsp;shared an example over on SO&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/48400210/include-sas-file-from-github-url" target="_blank"&gt;https://stackoverflow.com/questions/48400210/include-sas-file-from-github-url&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;filename bizarro url 
  "https://raw.githubusercontent.com/allanbowe/BizarroBall/master/bizarroball.sas";
%inc bizarro;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2022 22:32:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-execute-SAS-code-from-GIT-repository/m-p/835086#M330121</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-09-25T22:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute SAS code from GIT repository</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-execute-SAS-code-from-GIT-repository/m-p/835089#M330123</link>
      <description>&lt;P&gt;I would definitely advise against this approach in production, as it will require very careful management when it comes to promotions / merging etc.&amp;nbsp; Cloning the repo to your target machine, and pulling as necessary, is far preferable.&amp;nbsp; Or, &lt;A href="https://cli.sasjs.io/cbd/" target="_self"&gt;building your SAS jobs &amp;amp; services&lt;/A&gt; from the target branch, taking GIT out of the picture completely.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But anyways - beyond the approach that&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19879"&gt;@Quentin&lt;/a&gt;&amp;nbsp;references, you can also use the `sasjs run` command to execute code from a GIT repo (with the caveat that it will only work where authentication is not required).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Docs:&amp;nbsp;&lt;A href="https://cli.sasjs.io/run/#using-github-urls" target="_blank"&gt;https://cli.sasjs.io/run/#using-github-urls&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2022 23:31:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-execute-SAS-code-from-GIT-repository/m-p/835089#M330123</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2022-09-25T23:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute SAS code from GIT repository</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-execute-SAS-code-from-GIT-repository/m-p/835144#M330152</link>
      <description>&lt;P&gt;If your code is a system of files (macros, data files, multiple code files), then I recommend &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/n10pxql65jtf4sn11m3d6jzcrgcz.htm" target="_self"&gt;using the&amp;nbsp;&lt;STRONG&gt;git_clone&lt;/STRONG&gt; function in SAS&lt;/A&gt;&amp;nbsp;(gitfn_clone in 9.4m6, then aliased to git_clone in later releases) to clone the repo to a temp space and use that as a base for your %include statements. Example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;options dlcreatedir;
%let repopath=%sysfunc(getoption(WORK))/wordle-sas;
libname repo "&amp;amp;repopath.";
data _null_;
    rc = gitfn_clone( 
      "https://github.com/sascommunities/wordle-sas", 
      "&amp;amp;repoPath." 
    ); 
    put 'Git repo cloned ' rc=; 
run;
%include "&amp;amp;repopath./wordle-sas.sas";
 
/* start a game and submit first guess */
%startGame;
%guess(adieu);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 12:19:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-execute-SAS-code-from-GIT-repository/m-p/835144#M330152</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2022-09-26T12:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute SAS code from GIT repository</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-execute-SAS-code-from-GIT-repository/m-p/835385#M330276</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19879"&gt;@Quentin&lt;/a&gt;&amp;nbsp;and &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/28909"&gt;@AllanBowe&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the quick response!! we have tried executing the SAS code from SAS Studio, but getting an error which says "Invalid reply received from the HTTP server". Please help us to resolve this error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vimal08_0-1664265061525.jpeg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75614i5D53D10394B33964/image-size/large?v=v2&amp;amp;px=999" role="button" title="Vimal08_0-1664265061525.jpeg" alt="Vimal08_0-1664265061525.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, we have tried installing NVM to execute the commands to run SAS code from GIT using sasjs/cli, but there also we are getting an error. Below is the snapshot of the error, please help me to resolve this issue as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vimal08_1-1664265716068.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75615iD2168C77939CDD19/image-size/large?v=v2&amp;amp;px=999" role="button" title="Vimal08_1-1664265716068.png" alt="Vimal08_1-1664265716068.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 08:05:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-execute-SAS-code-from-GIT-repository/m-p/835385#M330276</guid>
      <dc:creator>Vimal08</dc:creator>
      <dc:date>2022-09-27T08:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute SAS code from GIT repository</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-execute-SAS-code-from-GIT-repository/m-p/835409#M330282</link>
      <description>&lt;P&gt;Does your environment have access to the Internet or does it require a proxy server? See how to check this (and correct with PROXY options) &lt;A href="https://blogs.sas.com/content/sasdummy/2018/01/23/check-json-and-http/" target="_self"&gt;in this article&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 11:32:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-execute-SAS-code-from-GIT-repository/m-p/835409#M330282</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2022-09-27T11:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute SAS code from GIT repository</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-execute-SAS-code-from-GIT-repository/m-p/835654#M330370</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/310312"&gt;@Vimal08&lt;/a&gt;&amp;nbsp;- we were unable to replicate that issue, however we have decided to just deprecate that function entirely (it was a check on install to ensure the user has the correct version of Node, ie LTS).&lt;BR /&gt;&lt;BR /&gt;We've now updated the utils, adapter and CLI repos.&amp;nbsp; Can you install the &lt;A href="https://github.com/sasjs/cli/releases/tag/v3.19.5" target="_self"&gt;latest version&lt;/A&gt; (3.19.5 +) and try again?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 15:46:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-execute-SAS-code-from-GIT-repository/m-p/835654#M330370</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2022-09-28T15:46:32Z</dc:date>
    </item>
  </channel>
</rss>

