<?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 How can I run a .sas program from within a .ksh on SAS Viya 4 installed on Linux server? in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/How-can-I-run-a-sas-program-from-within-a-ksh-on-SAS-Viya-4/m-p/864889#M1718</link>
    <description>My company has an installation of Viya 4 on Linux. I have a .sas program in /home/abc123/test.sas . What statement can I place inside a korn shell script to execute test.sas when the korn shell script is executed? I'm trying to figure how to run .sas programs in batch with the .log written to the same directory has the .sas. Please provide an example.</description>
    <pubDate>Fri, 17 Mar 2023 15:38:12 GMT</pubDate>
    <dc:creator>ijmoorejr</dc:creator>
    <dc:date>2023-03-17T15:38:12Z</dc:date>
    <item>
      <title>How can I run a .sas program from within a .ksh on SAS Viya 4 installed on Linux server?</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-can-I-run-a-sas-program-from-within-a-ksh-on-SAS-Viya-4/m-p/864889#M1718</link>
      <description>My company has an installation of Viya 4 on Linux. I have a .sas program in /home/abc123/test.sas . What statement can I place inside a korn shell script to execute test.sas when the korn shell script is executed? I'm trying to figure how to run .sas programs in batch with the .log written to the same directory has the .sas. Please provide an example.</description>
      <pubDate>Fri, 17 Mar 2023 15:38:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-can-I-run-a-sas-program-from-within-a-ksh-on-SAS-Viya-4/m-p/864889#M1718</guid>
      <dc:creator>ijmoorejr</dc:creator>
      <dc:date>2023-03-17T15:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I run a .sas program from within a .ksh on SAS Viya 4 installed on Linux server?</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-can-I-run-a-sas-program-from-within-a-ksh-on-SAS-Viya-4/m-p/864980#M1720</link>
      <description>Have you seen this post?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-Run-SAS-Programs-in-Batch-in-the-New-SAS-Viya/ta-p/732126" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-Run-SAS-Programs-in-Batch-in-the-New-SAS-Viya/ta-p/732126&lt;/A&gt;</description>
      <pubDate>Fri, 17 Mar 2023 20:20:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-can-I-run-a-sas-program-from-within-a-ksh-on-SAS-Viya-4/m-p/864980#M1720</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2023-03-17T20:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I run a .sas program from within a .ksh on SAS Viya 4 installed on Linux server?</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-can-I-run-a-sas-program-from-within-a-ksh-on-SAS-Viya-4/m-p/865081#M1726</link>
      <description>&lt;P&gt;Yes, I have read that post.&amp;nbsp; I created the following test.ksh, but get the message&amp;nbsp;&lt;EM&gt;sas-viya: 'submit-pgm' is not a sas-viya command. See 'sas-viya' --help'.&amp;nbsp;&lt;/EM&gt;upon execution of the korn shell script. Also, I see no evidence of the /home/abc123/test.sas being executed. I do not see a test.log or test.lst.&lt;/P&gt;&lt;PRE&gt;#!/bin/ksh

cd /loc/of/cli
./sas-viya --profile ${SAS_CLI_PROFILE} batch jobs submit-pgm --pgm-path /home/abc123/test.sas --context default --watch-output --wait-output --wait-log-list --results-dir /home/abc&lt;/PRE&gt;&lt;P&gt;The contents of /home/abc123/test.sas are as follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc options; run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 19 Mar 2023 09:41:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-can-I-run-a-sas-program-from-within-a-ksh-on-SAS-Viya-4/m-p/865081#M1726</guid>
      <dc:creator>ijmoorejr</dc:creator>
      <dc:date>2023-03-19T09:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: How can I run a .sas program from within a .ksh on SAS Viya 4 installed on Linux server?</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-can-I-run-a-sas-program-from-within-a-ksh-on-SAS-Viya-4/m-p/865101#M1727</link>
      <description>&lt;P&gt;Raise a support ticket.&amp;nbsp;&amp;nbsp;&lt;A href="https://support.sas.com/" target="_blank"&gt;https://support.sas.com/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Let use know what you find out.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Mar 2023 15:26:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-can-I-run-a-sas-program-from-within-a-ksh-on-SAS-Viya-4/m-p/865101#M1727</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-03-19T15:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can I run a .sas program from within a .ksh on SAS Viya 4 installed on Linux server?</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-can-I-run-a-sas-program-from-within-a-ksh-on-SAS-Viya-4/m-p/865137#M1728</link>
      <description>&lt;P&gt;The plugins are updated on a regular basis, so I suggest to do an update/install of all the plugins of the sas-viya CLI. You can do this like so:&lt;/P&gt;
&lt;PRE&gt;sas-viya plugins install --repo SAS all&lt;/PRE&gt;
&lt;P&gt;In case this does not work, you might have an older version of the sas-viya CLI. I recommend do download the latest version from here:&amp;nbsp;&lt;A href="https://support.sas.com/downloads/package.htm?pid=2512" target="_blank"&gt;https://support.sas.com/downloads/package.htm?pid=2512&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 07:26:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-can-I-run-a-sas-program-from-within-a-ksh-on-SAS-Viya-4/m-p/865137#M1728</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2023-03-20T07:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I run a .sas program from within a .ksh on SAS Viya 4 installed on Linux server?</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-can-I-run-a-sas-program-from-within-a-ksh-on-SAS-Viya-4/m-p/865256#M1732</link>
      <description>The error you mention receiving would occur if you ran "sas-viya submit-pgm" instead of "sas-viya batch jobs submit-pgm". Some example output:&lt;BR /&gt;$ sas-viya submit-pgm&lt;BR /&gt;sas-viya: 'submit-pgm' is not a sas-viya command. See 'sas-viya --help'.&lt;BR /&gt;$ sas-viya batch submit-pgm&lt;BR /&gt;sas-viya batch: 'submit-pgm' is not a sas-viya batch command. See 'sas-viya batch --help'.&lt;BR /&gt;$ sas-viya batch jobs submit-pgms&lt;BR /&gt;sas-viya batch: 'submit-pgms' is not a sas-viya batch command. See 'sas-viya batch --help'.&lt;BR /&gt;$ sas-viya batch jobs submit-pgm&lt;BR /&gt;A context must be specified.</description>
      <pubDate>Mon, 20 Mar 2023 16:33:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-can-I-run-a-sas-program-from-within-a-ksh-on-SAS-Viya-4/m-p/865256#M1732</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2023-03-20T16:33:15Z</dc:date>
    </item>
  </channel>
</rss>

