<?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: Libref not assigned on background submit in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Libref-not-assigned-on-background-submit/m-p/535434#M6483</link>
    <description>Usually, these have to do with permissions and/or accounts running the submit. If you're doing a remote submit, does that account have the same privileges? Is it running on the same location?</description>
    <pubDate>Wed, 13 Feb 2019 22:09:25 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-02-13T22:09:25Z</dc:date>
    <item>
      <title>Libref not assigned on background submit</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Libref-not-assigned-on-background-submit/m-p/535408#M6478</link>
      <description>&lt;P&gt;Apologies if this is a duplicate, but I haven't seen an answer that solves this for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;tl;dr - I have a valid Library that I can successfully call against in manually submitted code, but when I try to run a background submit i get a "Libref is not assigned" error. Running SAS Studio 3.7.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't really share my libname statement as it contains company-specific info, but suffice it to say that after running the Libname program the library shows up in my list, and I can open it to view the contained datasets. My PROC SQL program runs error-free if I manually click the "run" icon, but when saved and run via right-click &amp;gt; backgrounds submit I get the Libref error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Libref HIVE3 is not assigned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this a known issue? The library reference in my PROC SQL code was a drag-and-drop from the Library list, so there are no typos.... it just doesn't make sense to me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;63         options obs=max;
64         
65         proc sql;
66         	create table A.SAMPLETABLE as
67         (SELECT conn_id, emp_id FROM HIVE3.CP2_FINAL);
ERROR: Libref HIVE3 is not assigned.
NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.
73         quit;
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 20:41:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Libref-not-assigned-on-background-submit/m-p/535408#M6478</guid>
      <dc:creator>MattatRBC</dc:creator>
      <dc:date>2019-02-13T20:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Libref not assigned on background submit</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Libref-not-assigned-on-background-submit/m-p/535431#M6482</link>
      <description>&lt;P&gt;Your LIBNAME statement needs to be included in your background submit as this is a separate SAS session. Is it?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 22:02:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Libref-not-assigned-on-background-submit/m-p/535431#M6482</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-02-13T22:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Libref not assigned on background submit</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Libref-not-assigned-on-background-submit/m-p/535434#M6483</link>
      <description>Usually, these have to do with permissions and/or accounts running the submit. If you're doing a remote submit, does that account have the same privileges? Is it running on the same location?</description>
      <pubDate>Wed, 13 Feb 2019 22:09:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Libref-not-assigned-on-background-submit/m-p/535434#M6483</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-13T22:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Libref not assigned on background submit</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Libref-not-assigned-on-background-submit/m-p/535504#M6496</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/237406"&gt;@MattatRBC&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;.....&lt;/P&gt;
&lt;P&gt;after running the Libname program&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That's the point. You need to include the code of your "libname" program into the code you run as background submit. Since a completely new SAS instance is created temporarily for the background execution, it does not have the "prior knowledge" you get in the workspace server, where the SAS instance stays active for the whole duration until you disconnect from it.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 08:18:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Libref-not-assigned-on-background-submit/m-p/535504#M6496</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-02-14T08:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Libref not assigned on background submit</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Libref-not-assigned-on-background-submit/m-p/535578#M6507</link>
      <description>You and KurtBremser were right - thank you!!&lt;BR /&gt;&lt;BR /&gt;All of my other libnames live in the autoexec file, so I guess I had never run into this before.</description>
      <pubDate>Thu, 14 Feb 2019 13:28:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Libref-not-assigned-on-background-submit/m-p/535578#M6507</guid>
      <dc:creator>MattatRBC</dc:creator>
      <dc:date>2019-02-14T13:28:36Z</dc:date>
    </item>
  </channel>
</rss>

