<?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: Run .SAS en bath mode - Linux in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-SAS-in-batch-mode-Linux/m-p/921660#M44533</link>
    <description>&lt;P&gt;If your library is defined in SAS metadata only, then you need to Pre-Assign it for it to be executed in batch mode:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASKiwi_0-1711341447060.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/94903i8E0FF129F6EE0F74/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASKiwi_0-1711341447060.png" alt="SASKiwi_0-1711341447060.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Mar 2024 04:37:45 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2024-03-25T04:37:45Z</dc:date>
    <item>
      <title>Run .SAS in batch mode - Linux</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-SAS-in-batch-mode-Linux/m-p/920264#M44473</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are trying to run a SAS project (.SAS). This project internally queries a library, but every time we have tried it via batch, it says that the library is not assigned, which is completely incorrect because it is indeed assigned.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The command we are using is as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sas -nodms -batch -sysin Project.sas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Internally in .sas, it queries a table:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FROM Name.name_table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error it indicates is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: Libref Name is not assigned.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would it be necessary to make any call to the library or its location before running the project?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 11:28:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-SAS-in-batch-mode-Linux/m-p/920264#M44473</guid>
      <dc:creator>RaulME</dc:creator>
      <dc:date>2024-03-15T11:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Run .SAS en bath mode - Linux</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-SAS-in-batch-mode-Linux/m-p/920276#M44474</link>
      <description>&lt;P&gt;If SAS throws an error that the library is not assigned then it's just that: The library is not assigned in the SAS environment where the code runs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any environment like a SAS EG session where the exact same code does run? If so what's different? Is there a libname statement in the code or are you eventually using a pre-assigned library that doesn't get pre-assigned when running in batch (for example because you're not connecting to the SAS metadata server)?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 12:18:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-SAS-in-batch-mode-Linux/m-p/920276#M44474</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-03-14T12:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Run .SAS en bath mode - Linux</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-SAS-in-batch-mode-Linux/m-p/920277#M44475</link>
      <description>&lt;P&gt;It seems more likely that the issue is precisely the scenario you mentioned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm attempting to execute a .sas file located on the same server as EG. Internally, this file creates a table in another library by selecting from a table previously registered in a library.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 12:31:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-SAS-in-batch-mode-Linux/m-p/920277#M44475</guid>
      <dc:creator>RaulME</dc:creator>
      <dc:date>2024-03-14T12:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Run .SAS en bath mode - Linux</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-SAS-in-batch-mode-Linux/m-p/920305#M44476</link>
      <description>&lt;P&gt;In a BI Server environment, do not use SAS for batch like this. Use the sasbatch.sh shell script from the SASApp/BatchServer directory.&lt;/P&gt;
&lt;P&gt;You still may need to add code to the program file that you have in some autoexec mechanism that EG provides (code run when a server connection is established, and code run before every submission).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Edit: replaced WorkspaceServer with BatchServer&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 15:48:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-SAS-in-batch-mode-Linux/m-p/920305#M44476</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-03-14T15:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Run .SAS en bath mode - Linux</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-SAS-in-batch-mode-Linux/m-p/920366#M44480</link>
      <description>Maybe your LIBNAME statement  is costing too much time. &lt;BR /&gt;Maybe you need to wait for a couple of seconds to execute the following code.&lt;BR /&gt;Like :&lt;BR /&gt;&lt;BR /&gt;libname x odbc dsn=.... ;&lt;BR /&gt;data _null_;&lt;BR /&gt;call sleep(10,1);&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;..........Your following code here.........</description>
      <pubDate>Fri, 15 Mar 2024 05:34:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-SAS-in-batch-mode-Linux/m-p/920366#M44480</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-03-15T05:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Run .SAS en bath mode - Linux</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-SAS-in-batch-mode-Linux/m-p/920368#M44481</link>
      <description>&lt;P&gt;I think there is a spelling error in the title of the topic. In the body of the message it is correct but in the title, there is an error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Dr. Abhijeet Safai&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 05:53:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-SAS-in-batch-mode-Linux/m-p/920368#M44481</guid>
      <dc:creator>DrAbhijeetSafai</dc:creator>
      <dc:date>2024-03-15T05:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Run .SAS en bath mode - Linux</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-SAS-in-batch-mode-Linux/m-p/921660#M44533</link>
      <description>&lt;P&gt;If your library is defined in SAS metadata only, then you need to Pre-Assign it for it to be executed in batch mode:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASKiwi_0-1711341447060.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/94903i8E0FF129F6EE0F74/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASKiwi_0-1711341447060.png" alt="SASKiwi_0-1711341447060.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 04:37:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Run-SAS-in-batch-mode-Linux/m-p/921660#M44533</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2024-03-25T04:37:45Z</dc:date>
    </item>
  </channel>
</rss>

