<?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: creating dataset name using variable values in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/creating-dataset-name-using-variable-values/m-p/434032#M68846</link>
    <description>Thanqq so much</description>
    <pubDate>Mon, 05 Feb 2018 01:47:16 GMT</pubDate>
    <dc:creator>rohithverma</dc:creator>
    <dc:date>2018-02-05T01:47:16Z</dc:date>
    <item>
      <title>creating dataset name using variable values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/creating-dataset-name-using-variable-values/m-p/433793#M68825</link>
      <description>&lt;P&gt;consider an example of sashelp.class. Using this data set i want each record in this dataset is to be appeared in different datasets and the names of these data sets should be appeared as similar to the variable&amp;nbsp; "name"&amp;nbsp; values&amp;nbsp; in the sashelp.class in macros&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2018 14:35:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/creating-dataset-name-using-variable-values/m-p/433793#M68825</guid>
      <dc:creator>rohithverma</dc:creator>
      <dc:date>2018-02-03T14:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: creating dataset name using variable values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/creating-dataset-name-using-variable-values/m-p/433804#M68826</link>
      <description>&lt;P&gt;Do you have a specific question to ask?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you want somebody to just solve the problem for&amp;nbsp; you?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Must a solution use macro language?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you want somebody to outline a series of steps you should take?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you want somebody to suggest a first step you could take to get started?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will go with the last approach, how can you get started.&amp;nbsp; Use PROC SQL to create a macro variable holding a long list of all the NAME values found in sashelp.class.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2018 15:35:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/creating-dataset-name-using-variable-values/m-p/433804#M68826</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-02-03T15:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: creating dataset name using variable values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/creating-dataset-name-using-variable-values/m-p/433946#M68838</link>
      <description>&lt;P&gt;Is that necessary to make a macro ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
 set sashelp.class;
run;

data _null_;
if _n_=1 then do;
if 0 then set have;
declare hash h(dataset:'have(obs=0)');
h.definekey('name');
h.definedata(all:'y');
h.definedone();
end;
set have;
h.add();
h.output(dataset:name);
h.clear();
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 04 Feb 2018 10:44:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/creating-dataset-name-using-variable-values/m-p/433946#M68838</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-02-04T10:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: creating dataset name using variable values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/creating-dataset-name-using-variable-values/m-p/434032#M68846</link>
      <description>Thanqq so much</description>
      <pubDate>Mon, 05 Feb 2018 01:47:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/creating-dataset-name-using-variable-values/m-p/434032#M68846</guid>
      <dc:creator>rohithverma</dc:creator>
      <dc:date>2018-02-05T01:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: creating dataset name using variable values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/creating-dataset-name-using-variable-values/m-p/434033#M68847</link>
      <description>I have tried it but I am getting either first OBS into all datasets or last observation into all datasets .So I am unable to do that one</description>
      <pubDate>Mon, 05 Feb 2018 01:48:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/creating-dataset-name-using-variable-values/m-p/434033#M68847</guid>
      <dc:creator>rohithverma</dc:creator>
      <dc:date>2018-02-05T01:48:55Z</dc:date>
    </item>
  </channel>
</rss>

