<?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: Operation method using powershell in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/Operation-method-using-powershell/m-p/809036#M1390</link>
    <description>It's unclear to me what you want to do here.&lt;BR /&gt;SAS Studio is a web application, so if you were running a SAS program using SAS Studio you would not be using PowerShell.&lt;BR /&gt;You then say it doesn't matter if it's not a shell, you'd just like to run a SAS program in Viya, and SAS Studio would be a way to do this.&lt;BR /&gt;If your goal is to execute some SAS program in Viya non-interactively, you can store the program in Viya and schedule it to run or call the Job Execution REST API to run it (which could be done from anything that can send HTTP, including PowerShell).&lt;BR /&gt;&lt;BR /&gt;Documentation on the Job Execution REST API can be found here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developer.sas.com/apis/rest/v3.5/Compute/#job-execution" target="_blank"&gt;https://developer.sas.com/apis/rest/v3.5/Compute/#job-execution&lt;/A&gt;</description>
    <pubDate>Thu, 21 Apr 2022 12:38:49 GMT</pubDate>
    <dc:creator>gwootton</dc:creator>
    <dc:date>2022-04-21T12:38:49Z</dc:date>
    <item>
      <title>Operation method using powershell</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Operation-method-using-powershell/m-p/808961#M1387</link>
      <description>&lt;P&gt;I want to run a SAS program using sas studio on viya using powershell.&lt;BR /&gt;Please tell me the pages and methods that will be helpful.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 02:44:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Operation-method-using-powershell/m-p/808961#M1387</guid>
      <dc:creator>kzysmt</dc:creator>
      <dc:date>2022-04-21T02:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Operation method using powershell</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Operation-method-using-powershell/m-p/808969#M1388</link>
      <description>It doesn't matter if it's not a shell.&lt;BR /&gt;I would like to run a SAS program in Viya in some way.</description>
      <pubDate>Thu, 21 Apr 2022 05:05:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Operation-method-using-powershell/m-p/808969#M1388</guid>
      <dc:creator>kzysmt</dc:creator>
      <dc:date>2022-04-21T05:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Operation method using powershell</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Operation-method-using-powershell/m-p/808977#M1389</link>
      <description>&lt;P&gt;You can run a SAS program on SPRE using the SASjs CLI. &lt;BR /&gt;&lt;BR /&gt;Installation instructions: &lt;A href="https://cli.sasjs.io/installation/" target="_blank" rel="noopener"&gt;https://cli.sasjs.io/installation/&lt;/A&gt;&lt;BR /&gt;Configure your SAS target: &lt;A href="https://cli.sasjs.io/add/" target="_blank" rel="noopener"&gt;https://cli.sasjs.io/add/&lt;/A&gt;&lt;BR /&gt;Run some code: &lt;A href="https://cli.sasjs.io/run/" target="_blank" rel="noopener"&gt;https://cli.sasjs.io/run/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Here's a video demo of the above on Viya 4:&amp;nbsp;&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Hacker-s-Hub/Hacker-tip-2-running-SAS-code-from-terminal/td-p/800130" target="_blank"&gt;https://communities.sas.com/t5/SAS-Hacker-s-Hub/Hacker-tip-2-running-SAS-code-from-terminal/td-p/800130&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 08:42:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Operation-method-using-powershell/m-p/808977#M1389</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2022-04-21T08:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Operation method using powershell</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Operation-method-using-powershell/m-p/809036#M1390</link>
      <description>It's unclear to me what you want to do here.&lt;BR /&gt;SAS Studio is a web application, so if you were running a SAS program using SAS Studio you would not be using PowerShell.&lt;BR /&gt;You then say it doesn't matter if it's not a shell, you'd just like to run a SAS program in Viya, and SAS Studio would be a way to do this.&lt;BR /&gt;If your goal is to execute some SAS program in Viya non-interactively, you can store the program in Viya and schedule it to run or call the Job Execution REST API to run it (which could be done from anything that can send HTTP, including PowerShell).&lt;BR /&gt;&lt;BR /&gt;Documentation on the Job Execution REST API can be found here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developer.sas.com/apis/rest/v3.5/Compute/#job-execution" target="_blank"&gt;https://developer.sas.com/apis/rest/v3.5/Compute/#job-execution&lt;/A&gt;</description>
      <pubDate>Thu, 21 Apr 2022 12:38:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Operation-method-using-powershell/m-p/809036#M1390</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2022-04-21T12:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Operation method using powershell</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Operation-method-using-powershell/m-p/809201#M1391</link>
      <description>&lt;P&gt;thank you for your reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you said, I want to upload the SAS program files to sas studio on viya.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems that I can upload xlsx, csv, etc. to CAS using the following command, but I don't know how to upload the SAS program.&lt;/P&gt;
&lt;P&gt;Do you know how to upload a SAS program file using the CLI?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sas-admin cas tables import&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 05:43:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Operation-method-using-powershell/m-p/809201#M1391</guid>
      <dc:creator>kzysmt</dc:creator>
      <dc:date>2022-04-22T05:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Operation method using powershell</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Operation-method-using-powershell/m-p/809304#M1392</link>
      <description>I don't see a plugin in sas-admin CLI that can upload a file to the files service, so you'd need to use the files service REST API as described here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developer.sas.com/apis/rest/v3.5/CoreServices/#create-new-file-resource" target="_blank"&gt;https://developer.sas.com/apis/rest/v3.5/CoreServices/#create-new-file-resource&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Apr 2022 13:51:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Operation-method-using-powershell/m-p/809304#M1392</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2022-04-22T13:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Operation method using powershell</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Operation-method-using-powershell/m-p/809325#M1393</link>
      <description>&lt;P&gt;You can deploy SAS programs as Jobs (accessible in SAS Drive) using the SASjs CLI:&amp;nbsp; &lt;A href="https://cli.sasjs.io/deploy" target="_blank" rel="noopener"&gt;https://cli.sasjs.io/deploy&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have an open issue for including Studio programs:&amp;nbsp;&lt;A href="https://github.com/sasjs/cli/issues/991" target="_blank" rel="noopener"&gt;https://github.com/sasjs/cli/issues/991&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your project has the budget to support this feature, we'd be happy to build it.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 14:54:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Operation-method-using-powershell/m-p/809325#M1393</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2022-04-22T14:54:31Z</dc:date>
    </item>
  </channel>
</rss>

