<?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: Generating a large number of data sets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Generating-a-large-number-of-data-sets/m-p/487109#M287253</link>
    <description>&lt;P&gt;It doesn't.&amp;nbsp; The top DATA step creates 0 data sets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The bottom DATA step creates 1 data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Somewhere later in your program, you might see:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;amp;rawdata&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That could be the code you need explained.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Aug 2018 18:19:40 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2018-08-15T18:19:40Z</dc:date>
    <item>
      <title>Generating a large number of data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Generating-a-large-number-of-data-sets/m-p/487106#M287252</link>
      <description>&lt;P&gt;I am trying to understand how does following lines of code&amp;nbsp;create a number of data sets.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
   if "&amp;amp;sysscp"="WIN" then do;
     call symputx('rawdata',"&amp;amp;path\"); 
	 end;
   else do;
     call symputx('rawdata',"&amp;amp;path/"); 
     end;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;And after these lines, obviously there many data sets written using SAS code including formats and lengths and so on. How does the above code generates complete data sets and puts them in a particular folder. Could anyone please tell me the whole process behind it ? How does these macro lines run at execution time.?&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	data library_name.a1;
   attrib Supplier_ID length=8 label='Supplier ID' format=12.;
   attrib Supplier_Name length=$30 label='Supplier Name';
   attrib Street_ID length=8 label='Street ID' format=12.;
   attrib Supplier_Address length=$45 label='Supplier Address';
   attrib Sup_Street_Number length=$8 label='Supplier Street Number';
   attrib Country length=$2 label='Country';

   infile datalines dsd;
   input
      Supplier_ID
      Supplier_Name
      Street_ID
      Supplier_Address
      Sup_Street_Number
      Country
   ;
datalines4;
50,Scandinavian Clothing A/S,6850100389,Kr. Augusts Gate 13,13,NO
109,Petterson AB,8500100286,Blasieholmstorg 1,1,SE
316,Prime Sports Ltd,9250103252,9 Carlisle Place,9,GB
755,Top Sports,3150108266,Jernbanegade 45,45,DK
772,AllSeasons Outdoor Clothing,9260115819,553 Cliffview Dr,553,US
798,Sportico,8300100454,C. Barquillo 1,1,ES
1280,British Sports Ltd,9250100844,85 Station Street,85,GB
1303,Eclipse Inc,9260107621,1218 Carriole Ct,1218,US
;;;;
run;

 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and many more data sets like this . But before doing all this following code must run successfully.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let path=FILEPATH;
libname library_name "&amp;amp;path";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Aug 2018 18:37:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Generating-a-large-number-of-data-sets/m-p/487106#M287252</guid>
      <dc:creator>shivate_ps0</dc:creator>
      <dc:date>2018-08-15T18:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Generating a large number of data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Generating-a-large-number-of-data-sets/m-p/487109#M287253</link>
      <description>&lt;P&gt;It doesn't.&amp;nbsp; The top DATA step creates 0 data sets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The bottom DATA step creates 1 data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Somewhere later in your program, you might see:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;amp;rawdata&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That could be the code you need explained.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 18:19:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Generating-a-large-number-of-data-sets/m-p/487109#M287253</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-08-15T18:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Generating a large number of data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Generating-a-large-number-of-data-sets/m-p/487116#M287254</link>
      <description>&lt;P&gt;Thanks but it does create .&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;These lines are to be run&amp;nbsp;before to assign the library&amp;nbsp; either in SAS Studio or SAS Enterprise.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%let path=FILEPATH; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;libname library_name "&amp;amp;path";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Let me just edit my question.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 18:39:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Generating-a-large-number-of-data-sets/m-p/487116#M287254</guid>
      <dc:creator>shivate_ps0</dc:creator>
      <dc:date>2018-08-15T18:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Generating a large number of data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Generating-a-large-number-of-data-sets/m-p/487119#M287255</link>
      <description>&lt;P&gt;No, that code does not create data sets.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It does, however, define what "orion" means as being a particular folder.&amp;nbsp; It is entirely possible that the folder already contains many SAS data sets, and executing the LIBNAME statement makes those existing data sets visible to your session.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 18:34:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Generating-a-large-number-of-data-sets/m-p/487119#M287255</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-08-15T18:34:12Z</dc:date>
    </item>
  </channel>
</rss>

