<?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: Hacker tip #2 - running SAS code from terminal in SAS Hacker's Hub</title>
    <link>https://communities.sas.com/t5/SAS-Hacker-s-Hub/Hacker-tip-2-running-SAS-code-from-terminal/m-p/852245#M168</link>
    <description>&lt;P&gt;i guess this wouldn't work with free sas viya?: &lt;A href="https://statisticalhorizons.com/free-sas/" target="_blank" rel="noopener"&gt;https://statisticalhorizons.com/free-sas/&lt;/A&gt; ie could i provide the url created when i launch sas after signing in here?: &lt;A href="https://welcome.oda.sas.com/" target="_blank" rel="noopener"&gt;https://welcome.oda.sas.com/&lt;/A&gt; thanks&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jan 2023 09:31:52 GMT</pubDate>
    <dc:creator>pmbrown</dc:creator>
    <dc:date>2023-01-05T09:31:52Z</dc:date>
    <item>
      <title>Hacker tip #2 - running SAS code from terminal</title>
      <link>https://communities.sas.com/t5/SAS-Hacker-s-Hub/Hacker-tip-2-running-SAS-code-from-terminal/m-p/800130#M113</link>
      <description>&lt;P&gt;Would you like to run SAS code on your hackathon Viya 4 instance from terminal, perhaps in VS Code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Well - you can!&amp;nbsp; Just follow these steps:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp; Install the SASjs CLI -&amp;nbsp;&lt;A href="https://cli.sasjs.io/installation/" target="_blank" rel="noopener"&gt;https://cli.sasjs.io/installation.&lt;/A&gt;&amp;nbsp; (alternatively, use this gitpod instance:&amp;nbsp;&amp;nbsp;&lt;A href="https://gitpod.io/#github.com/sasjs/template_jobs" target="_blank" rel="noopener"&gt;https://gitpod.io/#github.com/sasjs/template_jobs&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp; Run `sasjs auth` and provide your Viya 4 server url (without trailing slash), client id of `hack_client` and client secret of `hack_secret`.&lt;/P&gt;
&lt;P&gt;3.&amp;nbsp; Create and save your desired SAS program&lt;BR /&gt;4.&amp;nbsp; Run `sasjs run /path/to/your/program.sas`&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more info on sasjs run, see docs:&amp;nbsp;&amp;nbsp;&lt;A href="https://cli.sasjs.io/run" target="_blank" rel="noopener"&gt;https://cli.sasjs.io/run&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;div class="video-embed-center video-embed"&gt;&lt;iframe class="embedly-embed" src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FLc1PGx6nOCw%3Ffeature%3Doembed&amp;amp;display_name=YouTube&amp;amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DLc1PGx6nOCw&amp;amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FLc1PGx6nOCw%2Fhqdefault.jpg&amp;amp;type=text%2Fhtml&amp;amp;schema=youtube" width="200" height="113" scrolling="no" title="Hacker Tip - running SAS code on Viya 4 from Terminal" frameborder="0" allow="autoplay; fullscreen; encrypted-media; picture-in-picture;" allowfullscreen="true"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2022 11:53:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Hacker-s-Hub/Hacker-tip-2-running-SAS-code-from-terminal/m-p/800130#M113</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2022-03-05T11:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Hacker tip #2 - running SAS code from terminal</title>
      <link>https://communities.sas.com/t5/SAS-Hacker-s-Hub/Hacker-tip-2-running-SAS-code-from-terminal/m-p/852245#M168</link>
      <description>&lt;P&gt;i guess this wouldn't work with free sas viya?: &lt;A href="https://statisticalhorizons.com/free-sas/" target="_blank" rel="noopener"&gt;https://statisticalhorizons.com/free-sas/&lt;/A&gt; ie could i provide the url created when i launch sas after signing in here?: &lt;A href="https://welcome.oda.sas.com/" target="_blank" rel="noopener"&gt;https://welcome.oda.sas.com/&lt;/A&gt; thanks&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 09:31:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Hacker-s-Hub/Hacker-tip-2-running-SAS-code-from-terminal/m-p/852245#M168</guid>
      <dc:creator>pmbrown</dc:creator>
      <dc:date>2023-01-05T09:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Hacker tip #2 - running SAS code from terminal</title>
      <link>https://communities.sas.com/t5/SAS-Hacker-s-Hub/Hacker-tip-2-running-SAS-code-from-terminal/m-p/852250#M169</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/308996"&gt;@pmbrown&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first link you shared is about UE, which has gone the way of the dodo&lt;BR /&gt;&lt;BR /&gt;The second link (ODA) is only SAS Studio, so it does not provide access to the Viya APIs which are necessary for ANY client to connect (not just SASjs)&lt;BR /&gt;&lt;BR /&gt;The only SASjs product you could use with ODA would be the core library: &lt;A href="https://core.sasjs.io" target="_blank"&gt;https://core.sasjs.io&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you have Base SAS (desktop) or SAS EBI at work though, you can still use SASjs, including this feature (running code from the terminal).&amp;nbsp; For Base SAS it makes use of SASjs Server (&lt;A href="https://server.sasjs.io" target="_blank"&gt;https://server.sasjs.io&lt;/A&gt;) and for EBI it uses a Stored Process to inject code.&lt;BR /&gt;&lt;BR /&gt;/Allan&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 11:27:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Hacker-s-Hub/Hacker-tip-2-running-SAS-code-from-terminal/m-p/852250#M169</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2023-01-05T11:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hacker tip #2 - running SAS code from terminal</title>
      <link>https://communities.sas.com/t5/SAS-Hacker-s-Hub/Hacker-tip-2-running-SAS-code-from-terminal/m-p/852496#M170</link>
      <description>&lt;P&gt;excellent, i do have sas base on the work computer so i will try it there, thanks. My 1st choice was the personal computer because it's linux and everything seems easier, but i have no sas on it&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 13:36:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Hacker-s-Hub/Hacker-tip-2-running-SAS-code-from-terminal/m-p/852496#M170</guid>
      <dc:creator>pmbrown</dc:creator>
      <dc:date>2023-01-06T13:36:51Z</dc:date>
    </item>
  </channel>
</rss>

