<?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: Set All Datasets present in library into one dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Set-All-Datasets-present-in-library-into-one-dataset/m-p/311357#M67275</link>
    <description>&lt;P&gt;Still you need to add the function&amp;nbsp;&lt;STRONG&gt;catx('.', 'abc', memname)&amp;nbsp;&lt;/STRONG&gt;which will append each of the datasets name with the library abc .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Monika&lt;/P&gt;</description>
    <pubDate>Mon, 14 Nov 2016 09:42:40 GMT</pubDate>
    <dc:creator>monikka1991</dc:creator>
    <dc:date>2016-11-14T09:42:40Z</dc:date>
    <item>
      <title>Set All Datasets present in library into one dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Set-All-Datasets-present-in-library-into-one-dataset/m-p/311327#M67258</link>
      <description>&lt;P&gt;After Reading multiple threads i'm able to write below code, but not getting output...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help !!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname abc 'C:\Users\Sony\Desktop\datasets';&lt;BR /&gt;OPTIONS SYMBOLGEN;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;BR /&gt;select memname into: names seprated by ''&lt;BR /&gt;from Dictionary.tables&lt;BR /&gt;where libname="ABC" ;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;data want;&lt;BR /&gt;set abc.&amp;amp;names;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SYMBOLGEN: Macro variable NAMES resolves to WORK1WORK2WORK3&lt;BR /&gt;180 set abc.&amp;amp;names;&lt;BR /&gt;ERROR: File ABC.WORK1WORK2WORK3.DATA does not exist.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 06:37:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Set-All-Datasets-present-in-library-into-one-dataset/m-p/311327#M67258</guid>
      <dc:creator>atul_desh</dc:creator>
      <dc:date>2016-11-14T06:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set All Datasets present in library into one dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Set-All-Datasets-present-in-library-into-one-dataset/m-p/311329#M67260</link>
      <description>&lt;P&gt;It should be&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;select catx('.', 'abc', memname) into :names&amp;nbsp;&lt;STRONG&gt;separated&lt;/STRONG&gt; by ' '&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your currently generating a macro variable that looks like:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Work1 Work2 Work3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to create&amp;nbsp;&lt;/P&gt;
&lt;P&gt;abc.work1 abc.work2 etc...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have a spelling mistake in your PROC SQL and are missing the library portion of the name.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If they all have the same prefix you can use the colon shortcut instead.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data want;&lt;/P&gt;
&lt;P&gt;set abc.work:;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 06:48:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Set-All-Datasets-present-in-library-into-one-dataset/m-p/311329#M67260</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-14T06:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set All Datasets present in library into one dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Set-All-Datasets-present-in-library-into-one-dataset/m-p/311330#M67261</link>
      <description>&lt;P&gt;I've corrected the line "seprated by ' '&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but now i'm not getting why work1, work2 &amp;amp; work3 are searching in work library. I've given abc.&amp;amp;names&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname abc 'C:\Users\Sony\Desktop\datasets';&lt;BR /&gt;OPTIONS SYMBOLGEN;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;BR /&gt;select memname into: names seprated by ' '&lt;BR /&gt;from Dictionary.tables&lt;BR /&gt;where libname="ABC" ;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;data want;&lt;BR /&gt;set abc.&amp;amp;names;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error :&amp;nbsp;&lt;/P&gt;&lt;P&gt;SYMBOLGEN: Macro variable NAMES resolves to WORK1 WORK2 WORK3&lt;BR /&gt;360 set abc.&amp;amp;names;&lt;BR /&gt;ERROR: File WORK.WORK2.DATA does not exist.&lt;BR /&gt;ERROR: File WORK.WORK3.DATA does not exist.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 06:55:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Set-All-Datasets-present-in-library-into-one-dataset/m-p/311330#M67261</guid>
      <dc:creator>atul_desh</dc:creator>
      <dc:date>2016-11-14T06:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set All Datasets present in library into one dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Set-All-Datasets-present-in-library-into-one-dataset/m-p/311357#M67275</link>
      <description>&lt;P&gt;Still you need to add the function&amp;nbsp;&lt;STRONG&gt;catx('.', 'abc', memname)&amp;nbsp;&lt;/STRONG&gt;which will append each of the datasets name with the library abc .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Monika&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 09:42:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Set-All-Datasets-present-in-library-into-one-dataset/m-p/311357#M67275</guid>
      <dc:creator>monikka1991</dc:creator>
      <dc:date>2016-11-14T09:42:40Z</dc:date>
    </item>
  </channel>
</rss>

