<?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 Library with dynamic name cannot be created in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Library-with-dynamic-name-cannot-be-created/m-p/24726#M2513</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Can you send the log from each STP?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Mar 2012 13:29:02 GMT</pubDate>
    <dc:creator>jcbell</dc:creator>
    <dc:date>2012-03-09T13:29:02Z</dc:date>
    <item>
      <title>Library with dynamic name cannot be created</title>
      <link>https://communities.sas.com/t5/Developers/Library-with-dynamic-name-cannot-be-created/m-p/24725#M2512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to ask regarding creating library by using stored process. I have 2 stored process that will 1 library (physical).&lt;/P&gt;&lt;P&gt; In the first stored process I created the library and its name based on username;because I have severals users that will use it. And the second stored process is access its library. So, every users has their own library. When I create library in the first stored process is successfull; but when I access it by using second stored process, it said the library is not exist. Here are my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;Test1.sas: *create libary&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;%stpbegin;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;%global month_from month_to _METAUSER;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;libname test BASE "&amp;lt;my libref location&amp;gt;";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;DATA _NULL_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call symput("table_name",cats("Lib_","&amp;amp;_METAUSER"));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;DATA test.&amp;amp;table_name;&lt;SPAN style="color: #ff0000;"&gt; *(the problem)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; month_from="&amp;amp;month_from";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; month_to="&amp;amp;month_to";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;%stpend;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;Test2.sas:*access library&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;%stpbegin;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;%global month_from month_to _METAUSER;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;libname test BASE "&amp;lt;my libref location&amp;gt;";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;DATA _NULL_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call symput("table_name",cats("Lib_","&amp;amp;_METAUSER"));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;DATA _NULL_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set test.&amp;amp;table_name;&lt;SPAN style="color: #ff0000;"&gt; *(the problem)&lt;SPAN style="color: #008080;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call symput("month_from"),month_from);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call symput("month_to"),month_to);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;%stpend;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080;"&gt;&lt;SPAN style="color: #000000;"&gt;Hopefully, anyone can help me or suggest another way so the 2 stored process can communicate by its own user. Thank You.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 07:04:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Library-with-dynamic-name-cannot-be-created/m-p/24725#M2512</guid>
      <dc:creator>kuro_kuro</dc:creator>
      <dc:date>2012-03-08T07:04:39Z</dc:date>
    </item>
    <item>
      <title>Library with dynamic name cannot be created</title>
      <link>https://communities.sas.com/t5/Developers/Library-with-dynamic-name-cannot-be-created/m-p/24726#M2513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Can you send the log from each STP?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 13:29:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Library-with-dynamic-name-cannot-be-created/m-p/24726#M2513</guid>
      <dc:creator>jcbell</dc:creator>
      <dc:date>2012-03-09T13:29:02Z</dc:date>
    </item>
    <item>
      <title>Library with dynamic name cannot be created</title>
      <link>https://communities.sas.com/t5/Developers/Library-with-dynamic-name-cannot-be-created/m-p/24727#M2514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Just a few questions.. is your dataset getting created in the libref when you execute stp1?.&lt;/P&gt;&lt;P&gt;if yes, then does the same code execute properly if run through STP2... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if both these are working then either ur actual code or log will be required for others to check&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 18:46:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Library-with-dynamic-name-cannot-be-created/m-p/24727#M2514</guid>
      <dc:creator>NN</dc:creator>
      <dc:date>2012-03-09T18:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Library with dynamic name cannot be created</title>
      <link>https://communities.sas.com/t5/Developers/Library-with-dynamic-name-cannot-be-created/m-p/24728#M2515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you running your sp on a stored process server and are you creating and maintaining a session so that all your stored processes use the same environment? If not then this would explain the issue you're having.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the doco (page 33 ff):&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/stpug/61271/PDF/default/stpug.pdf"&gt;http://support.sas.com/documentation/cdl/en/stpug/61271/PDF/default/stpug.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2012 00:13:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Library-with-dynamic-name-cannot-be-created/m-p/24728#M2515</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2012-03-10T00:13:48Z</dc:date>
    </item>
    <item>
      <title>Library with dynamic name cannot be created</title>
      <link>https://communities.sas.com/t5/Developers/Library-with-dynamic-name-cannot-be-created/m-p/24729#M2516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kuro-Kuro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a though, i have not used stored processes yet but wont the Macro reference here need two periods? as such:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #008080;"&gt;DATA &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;test..&amp;amp;&lt;/STRONG&gt;&lt;/SPAN&gt;table_name;&lt;SPAN style="color: #ff0000;"&gt; *(the problem)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is just something i know has to be done in normal code because u reference a library before the data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maheshvaran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Mar 2012 19:19:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Library-with-dynamic-name-cannot-be-created/m-p/24729#M2516</guid>
      <dc:creator>Maheshvaran</dc:creator>
      <dc:date>2012-03-11T19:19:50Z</dc:date>
    </item>
    <item>
      <title>Library with dynamic name cannot be created</title>
      <link>https://communities.sas.com/t5/Developers/Library-with-dynamic-name-cannot-be-created/m-p/24730#M2517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the problem that you are having?&amp;nbsp; Did you get any error messages in the logs?&lt;/P&gt;&lt;P&gt;It is not the library name that is dynamic in your example, but that dataset name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also note that you do not need to use a dataset to concatenate macro variables.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080; background-color: #eef4f9;"&gt;%let table_name=Lib_&amp;amp;_METAUSER;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080; background-color: #eef4f9;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Mar 2012 19:50:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Library-with-dynamic-name-cannot-be-created/m-p/24730#M2517</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-03-11T19:50:23Z</dc:date>
    </item>
  </channel>
</rss>

