<?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 Can I use SAS statement to refer to a pre-assigned library? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-I-use-SAS-statement-to-refer-to-a-pre-assigned-library/m-p/489321#M127742</link>
    <description>&lt;P&gt;In new SAS Grid computing environment, there are some pre-assigned libraries, such as CES, CI...Good thing is SAS EG users are able to access to different server directly. But, I have to manually assign library (double click 'CES' library from sas server) before I can pull data/use tables. I am wondering that is there a way to use SAS statement to assign SAS libraries 'CES' without double click? In this way, I can automatic/schedule&amp;nbsp;SAS&amp;nbsp;programs without manually interrupt. In this case, I don't have SAS admin right and no libraries path...as a business user ONLY.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Aug 2018 17:35:12 GMT</pubDate>
    <dc:creator>MicSun</dc:creator>
    <dc:date>2018-08-23T17:35:12Z</dc:date>
    <item>
      <title>Can I use SAS statement to refer to a pre-assigned library?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-use-SAS-statement-to-refer-to-a-pre-assigned-library/m-p/489321#M127742</link>
      <description>&lt;P&gt;In new SAS Grid computing environment, there are some pre-assigned libraries, such as CES, CI...Good thing is SAS EG users are able to access to different server directly. But, I have to manually assign library (double click 'CES' library from sas server) before I can pull data/use tables. I am wondering that is there a way to use SAS statement to assign SAS libraries 'CES' without double click? In this way, I can automatic/schedule&amp;nbsp;SAS&amp;nbsp;programs without manually interrupt. In this case, I don't have SAS admin right and no libraries path...as a business user ONLY.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 17:35:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-use-SAS-statement-to-refer-to-a-pre-assigned-library/m-p/489321#M127742</guid>
      <dc:creator>MicSun</dc:creator>
      <dc:date>2018-08-23T17:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use SAS statement to refer to a pre-assigned library?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-use-SAS-statement-to-refer-to-a-pre-assigned-library/m-p/489475#M127814</link>
      <description>&lt;P&gt;Unsure this will help, but in case you don't know this syntax:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname THISLIB "%sysfunc(pathname(THATLIB))" access=readonly;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 02:18:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-use-SAS-statement-to-refer-to-a-pre-assigned-library/m-p/489475#M127814</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-08-24T02:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use SAS statement to refer to a pre-assigned library?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-use-SAS-statement-to-refer-to-a-pre-assigned-library/m-p/489734#M127946</link>
      <description>&lt;P&gt;Thank you for your reply. But still cannot find "Pre-assigned libraries"&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname CES "%sysfunc(libref(CES))" ;

NOTE: Library CES does not exist.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Aug 2018 19:25:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-use-SAS-statement-to-refer-to-a-pre-assigned-library/m-p/489734#M127946</guid>
      <dc:creator>MicSun</dc:creator>
      <dc:date>2018-08-24T19:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use SAS statement to refer to a pre-assigned library?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-use-SAS-statement-to-refer-to-a-pre-assigned-library/m-p/489837#M127988</link>
      <description>&lt;P&gt;Where are these libraries defined?&amp;nbsp; If they are only assigned in EG then your SAS program cannot reach back into your PC and ask EG what libraries you defined.&amp;nbsp; If they are defined in your SAS Metadata server then you should be able to discover them, but I don't know how since I don't use that feature of SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why not just put in the SAS code to define the libraries? Do you know how they are defined?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to have some control then place these statements in a place where you code and find them and just use %INCLUDE statement to pull in the code and run it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or are you talking about SAS connection session? Where there are some libraries defined in the local session and you want to reference those locations in the remote session?&amp;nbsp; Not sure how to do that but it is easy to do it the other way using the REMOTE engine on the libname statement.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Aug 2018 18:13:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-use-SAS-statement-to-refer-to-a-pre-assigned-library/m-p/489837#M127988</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-08-25T18:13:38Z</dc:date>
    </item>
  </channel>
</rss>

