<?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: Sourcing in (macro) code from a _private_ repository in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890788#M351982</link>
    <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;NOTE: libgit2.so not found in the system location, trying the extension path.&lt;BR /&gt;NOTE: libgit2.so not found in the system location, trying the install path.&lt;BR /&gt;ERROR: libgit2.so not found.&lt;BR /&gt;ERROR: Unable to load libgit2 module.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Lovely! So I need to check with the admins first ... It might not be a wandering star I was born under ... but it is not a good one by the looks of it.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Aug 2023 14:44:59 GMT</pubDate>
    <dc:creator>fja</dc:creator>
    <dc:date>2023-08-24T14:44:59Z</dc:date>
    <item>
      <title>Sourcing in (macro) code from a _private_ repository</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890335#M351803</link>
      <description>&lt;P&gt;Dear Community!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am looking for a way to %include code from a github repository (several autocall macros). I can do so with a public repository, but what about a private repository?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have had several discussions here on accessing git repositories directly and reading data from it (both&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Can-one-upload-github-database-directly-onto-SAS-or-do-I-need-to/td-p/694804" target="_self"&gt;data and code&lt;/A&gt;&amp;nbsp; or just &lt;A href="https://communities.sas.com/t5/Administration-and-Deployment/SAS-macros-in-Git/td-p/730543" target="_self"&gt;macro code&lt;/A&gt;). But all these approaches require a public repository to have the links to the data/code code working (equivalent to the raw file button in github).&amp;nbsp; In &lt;A href="https://communities.sas.com/t5/Administration-and-Deployment/SAS-macros-in-Git/m-p/731052/highlight/true#M21898" target="_self"&gt;this posting&lt;/A&gt; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&amp;nbsp;&amp;nbsp;has sketched out what I actually want to achive (first code fragment) ... and what I would like to avoid (second code fragment using the gitfn_*).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem is ... that the link to the raw file in a private repository gets an oauth token appended, but that changes over time. And private access tokens cannot be used in the same fashion (at least by the looks of it). Instead the wise internet suggest the use of a header ("Authentication: token TOKEN") for a similar access problem using curl.&amp;nbsp; In curl there is a nice option to do this ... but how to do this in SAS?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just another piece of information: I am limited to the use of GitHub Enterprise and non public repositories. It could very well be that I am barking up the wrong tree ... maybe ssl authentication is the way to go. So, to cut it short:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Does anybody have any experience with accessing non public github repositories&amp;nbsp; under SAS and using&amp;nbsp; %include to source in autocall macros?&amp;nbsp;&lt;/STRONG&gt;(and is willing to share his expertise of course&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;fja&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 08:47:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890335#M351803</guid>
      <dc:creator>fja</dc:creator>
      <dc:date>2023-08-22T08:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcing in (macro) code from a _private_ repository</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890415#M351839</link>
      <description>&lt;P&gt;What version of SAS (Studio/EG/Viya)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you looking at connecting to your repository overall or rather just at startup?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 15:36:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890415#M351839</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-08-22T15:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcing in (macro) code from a _private_ repository</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890456#M351860</link>
      <description>&lt;P&gt;Hello Reya!&lt;BR /&gt;&lt;BR /&gt;Thank you very much for your reply.&lt;BR /&gt;&lt;BR /&gt;SAS 9.4 EG 8.2, but using %include should be independant of the EG version.&lt;BR /&gt;&lt;BR /&gt;It is just a punctual connect i am looking at just for establishing a connection via filename ... to a single file in a repository or a directory. &lt;BR /&gt;&lt;BR /&gt;The first shall be used for sourcing in a single file ... the latter would be used to set up the autosas option.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Fja&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 18:48:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890456#M351860</guid>
      <dc:creator>fja</dc:creator>
      <dc:date>2023-08-22T18:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcing in (macro) code from a _private_ repository</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890457#M351861</link>
      <description>Right, if you don't want to connect and create a local repository, it does make it a more complicated process. Especially if doing this for multiple files.</description>
      <pubDate>Tue, 22 Aug 2023 18:50:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890457#M351861</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-08-22T18:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcing in (macro) code from a _private_ repository</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890477#M351866</link>
      <description>I feared it to be so ... nevertheless from the coding side it is ever so charming: setting up a filename  and off you go ...&lt;BR /&gt;But you are correct, doing it via a temporary clone is doable ... but then again one needed to ensure that your local copy (clone) is always updated to the latest ...&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Aug 2023 20:06:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890477#M351866</guid>
      <dc:creator>fja</dc:creator>
      <dc:date>2023-08-22T20:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcing in (macro) code from a _private_ repository</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890485#M351870</link>
      <description>Yes, but git functions are smart enough to only update files as needed.</description>
      <pubDate>Tue, 22 Aug 2023 21:14:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890485#M351870</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-08-22T21:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcing in (macro) code from a _private_ repository</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890486#M351871</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Yes, but git functions are smart enough to only update files as needed.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Good point.&amp;nbsp; So presumably you could wrap Chris's code from the other thread in an autocall macro.&amp;nbsp; So user could run %gitinclude(repo=,file=) and it would use SAS git functions to update the local repo, then %include the specified .sas file.&amp;nbsp; I suppose if you wanted to, the local repo could even be put in the WORK dir.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 21:22:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890486#M351871</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-08-22T21:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcing in (macro) code from a _private_ repository</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890487#M351872</link>
      <description>If you use work, can use gitclone and then a %include, I would wrap the whole thing in a local macro and call that?</description>
      <pubDate>Tue, 22 Aug 2023 21:30:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890487#M351872</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-08-22T21:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcing in (macro) code from a _private_ repository</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890788#M351982</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;NOTE: libgit2.so not found in the system location, trying the extension path.&lt;BR /&gt;NOTE: libgit2.so not found in the system location, trying the install path.&lt;BR /&gt;ERROR: libgit2.so not found.&lt;BR /&gt;ERROR: Unable to load libgit2 module.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Lovely! So I need to check with the admins first ... It might not be a wandering star I was born under ... but it is not a good one by the looks of it.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 14:44:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890788#M351982</guid>
      <dc:creator>fja</dc:creator>
      <dc:date>2023-08-24T14:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcing in (macro) code from a _private_ repository</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890790#M351983</link>
      <description>Are you on 9.4M6+?</description>
      <pubDate>Thu, 24 Aug 2023 14:48:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890790#M351983</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-08-24T14:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcing in (macro) code from a _private_ repository</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890800#M351989</link>
      <description>&lt;P&gt;Current version: 9.04.01M7P080520&lt;/P&gt;
&lt;P&gt;i.e. yes.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 15:12:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890800#M351989</guid>
      <dc:creator>fja</dc:creator>
      <dc:date>2023-08-24T15:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcing in (macro) code from a _private_ repository</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890942#M352027</link>
      <description>&lt;P&gt;Ok, admins say they need a concept for using git and "if and how" git could be integrated with SAS. I read that as "go away".&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Question:&amp;nbsp; Does anybody know, if SAS brings its own git (i.e. the shared objects) or does it rely on the OS to provide these? I was under the impression that the first case held true.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 07:51:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890942#M352027</guid>
      <dc:creator>fja</dc:creator>
      <dc:date>2023-08-25T07:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcing in (macro) code from a _private_ repository</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890950#M352031</link>
      <description>&lt;P&gt;If the private repo is owned by your team (e.g. user MySuperTeamRepo) you could try to generate Private Access Token for a repo:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.github.com/en/enterprise-server@3.6/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token" target="_blank" rel="noopener"&gt;https://docs.github.com/en/enterprise-server@3.6/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Settings:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/settings/tokens" target="_blank" rel="noopener"&gt;https://github.com/settings/tokens&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;token type: classic&lt;/P&gt;
&lt;P&gt;with the scopes:&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;repo - Full control of private repositories&lt;BR /&gt;repo:status - Access commit status&lt;BR /&gt;repo_deployment - Access deployment status&lt;BR /&gt;public_repo - Access public repositories&lt;BR /&gt;repo:invite - Access repository invitations&lt;BR /&gt;security_events - Read and write security events&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;and then:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename x url 'https://raw.githubusercontent.com/MySuperTeamRepo/REPO_NAME/main/FILE_TO_INCLUDE.sas' 
user = 'MySuperTeamRepo' 
password = 'ghp_JKFGHKLDRF*********GHFKJDBVKJSDVJKHSDJK' /* &amp;lt;- token goes here */
/*debug*/&lt;BR /&gt;;

%include x / source2;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can parameterise it with macro variables:&lt;/P&gt;
&lt;P&gt;[EDIT: semicolon was missing in macro definition]&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro GetMeTheCode(
/* required */
 user
,token
,repoName
,file
/* optional */
,branch=main
,debug= /*debug*/
,source2= /*source2*/
);

filename x url "https://raw.githubusercontent.com/&amp;amp;user./&amp;amp;repoName./&amp;amp;branch./&amp;amp;file." 
user = "&amp;amp;user." 
password = "&amp;amp;token." /* &amp;lt;- token goes here */
&amp;amp;debug.
;
filename x list;

%include x / &amp;amp;source2.;

filename x clear;

%mend GetMeTheCode;


%GetMeTheCode(
 MySuperTeamRepo
,ghp_JKFGHKLDRF*********GHFKJDBVKJSDVJKHSDJK
,REPO_NAME
,FILE_TO_INCLUDE.sas
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's not a silver bullet since the token allows access to all repositories owned by&amp;nbsp;MySuperTeamRepo, but maybe it will do the job for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All the best&lt;/P&gt;
&lt;P&gt;Bart&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 09:44:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890950#M352031</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2023-08-25T09:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcing in (macro) code from a _private_ repository</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890954#M352033</link>
      <description>&lt;P&gt;If you decide to set up the "fine-grained token" with parameters:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;Only select repositories&lt;/EM&gt;: your selected repo&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;Repository permissions&lt;/EM&gt;:&amp;nbsp;Contents (Repository contents, commits, branches, downloads, releases, and merges.)&amp;nbsp; in Read_Only&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;that should give you some better "access" setup.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 09:41:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890954#M352033</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2023-08-25T09:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcing in (macro) code from a _private_ repository</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890955#M352034</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/35763"&gt;@yabwon&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;token type: classic&lt;/P&gt;
&lt;P&gt;with the scopes:&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;repo - Full control of private repositories&lt;BR /&gt;repo:status - Access commit status&lt;BR /&gt;repo_deployment - Access deployment status&lt;BR /&gt;public_repo - Access public repositories&lt;BR /&gt;repo:invite - Access repository invitations&lt;BR /&gt;security_events - Read and write security events&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;and then:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename x url 'https://raw.githubusercontent.com/MySuperTeamRepo/REPO_NAME/main/FILE_TO_INCLUDE.sas' 
user = 'MySuperTeamRepo' 
password = 'ghp_JKFGHKLDRF*********GHFKJDBVKJSDVJKHSDJK' /* &amp;lt;- token goes here */
/*debug*/&lt;BR /&gt;;

%include x / source2;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hello Bart!&lt;/P&gt;
&lt;P&gt;Thank you for your reply. This is what I did when first trying it ... the filename line fails on me&amp;nbsp; with a timeout ... though the host is pingable.&lt;/P&gt;
&lt;P&gt;Just that I am using (have to use) GitHup Enterprise.&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: And of course I did retry it with the code you suggested ... same result: timeout.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 09:51:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890955#M352034</guid>
      <dc:creator>fja</dc:creator>
      <dc:date>2023-08-25T09:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcing in (macro) code from a _private_ repository</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890959#M352036</link>
      <description>&lt;P&gt;Hmmm...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did a test with a "organisation" repo I have and it worked too. But "organiosation" repo it is not the same a "enterprise"... maybe some different setup is needed...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[EDIT:] maybe option: add a collaborator with read access only will do? but this will require that all possible users would have git account too...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 10:26:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890959#M352036</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2023-08-25T10:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcing in (macro) code from a _private_ repository</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890969#M352040</link>
      <description>&lt;P&gt;Another piece of information:&lt;/P&gt;
&lt;P&gt;when using x command git clone &amp;nbsp;git clone https;//&amp;lt;MeName&amp;gt;:&amp;lt;MePwd&amp;gt;@&amp;lt;host&amp;gt;/&amp;lt;MeName&amp;gt;/&amp;lt;repo&amp;gt;.git on the sas host I get&lt;/P&gt;
&lt;HR /&gt;
&lt;PRE&gt;Cloning into '&amp;lt;repo&amp;gt;'...
/usr/lib/git/git-remote-https: /opt/sas/sas94m7/SASHome/SASFoundation/9.4/sasexe/libcrypto.so.1.0.0: no version information available (required by /usr/lib64/libcurl.so.4)
/usr/lib/git/git-remote-https: /opt/sas/sas94m7/SASHome/SASFoundation/9.4/sasexe/libssl.so.1.0.0: no version information available (required by /usr/lib64/libcurl.so.4)
/usr/lib/git/git-remote-https: /opt/sas/sas94m7/SASHome/SASFoundation/9.4/sasexe/libcrypto.so.1.0.0: no version information available (required by /usr/lib64/libssh.so.4)
/usr/lib/git/git-remote-https: /opt/sas/sas94m7/SASHome/SASFoundation/9.4/sasexe/libssl.so.1.0.0: no version information available (required by /usr/lib64/libldap-2.4.so.2)
/usr/lib/git/git-remote-https: /opt/sas/sas94m7/SASHome/SASFoundation/9.4/sasexe/libcrypto.so.1.0.0: no version information available (required by /usr/lib64/libldap-2.4.so.2)
fatal: unable to access 'https://&amp;lt;host&amp;gt;/&amp;lt;MeName&amp;gt;/&amp;lt;repo&amp;gt;.git/': Failed to connect to &amp;lt;host&amp;gt; port 443 after 7247 ms: Couldn't connect to server&lt;/PRE&gt;
&lt;P&gt;Funny/remarkable thing is: the unix git command (/usr/bin/git) draws the sas so-libs.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This seems to indicate that the git setup is messy on the host. EG however lets me clone it to the local PC, so the credentials seem to work.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 11:54:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890969#M352040</guid>
      <dc:creator>fja</dc:creator>
      <dc:date>2023-08-25T11:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcing in (macro) code from a _private_ repository</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890972#M352042</link>
      <description>&lt;P&gt;@ Bart: Thank you for indicating how it works on your side ... I guess this should be the solution I am looking for iff the git setup was correct. (see my posting above)&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 11:57:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890972#M352042</guid>
      <dc:creator>fja</dc:creator>
      <dc:date>2023-08-25T11:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcing in (macro) code from a _private_ repository</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890974#M352043</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/338236"&gt;@fja&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;I have a feeling your System Admins would need to install &lt;A title="git" href="https://git-scm.com/" target="_blank" rel="noopener"&gt;git&lt;/A&gt;&amp;nbsp;on your SAS server before you could SAS's git functions&amp;nbsp; (gitfn_*)&lt;/P&gt;
&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 12:45:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890974#M352043</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2023-08-25T12:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcing in (macro) code from a _private_ repository</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890980#M352049</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/338236"&gt;@fja&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Ok, admins say they need a concept for using git and "if and how" git could be integrated with SAS. I read that as "go away".&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Question:&amp;nbsp; Does anybody know, if SAS brings its own git (i.e. the shared objects) or does it rely on the OS to provide these? I was under the impression that the first case held true.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I *think* you are correct that SAS brings its own git.&amp;nbsp; Pretty sure you can use EG or Studio to connect to git, and also use the git functions in SAS code, without ever installing git on the OS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But in my limited experience, I think it would be hard to use git without having it also available on the OS so you can use non-SAS git interfaces/clients.&amp;nbsp; We store our SAS code on a linux server, and have central git repos on a Windows server somewhere.&amp;nbsp; I tried playing with git, but the admins weren't interested in investing time to get the authentication working between our linux SAS box and the windows box with the git repo.&amp;nbsp; I don't think I could have done it from within SAS even if I had tried.&amp;nbsp; I have played with some ugly workarounds running git locally on windows, so I can connect to the central git repos from windows, and accessing the linux files via samba....&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 13:24:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sourcing-in-macro-code-from-a-private-repository/m-p/890980#M352049</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-08-25T13:24:44Z</dc:date>
    </item>
  </channel>
</rss>

