<?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: data _null_ in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/data-null/m-p/10508#M840</link>
    <description>or do you want to create a new file name from the content of your data ?&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
  set sashelp.class;&lt;BR /&gt;
  filename= cats('d:\',name,'.htm');&lt;BR /&gt;
  file dummy filevar=filename dsd;&lt;BR /&gt;
  put age;&lt;BR /&gt;
run;</description>
    <pubDate>Mon, 02 Nov 2009 12:05:17 GMT</pubDate>
    <dc:creator>GertNissen</dc:creator>
    <dc:date>2009-11-02T12:05:17Z</dc:date>
    <item>
      <title>data _null_</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-null/m-p/10506#M838</link>
      <description>Can anyone teach me how to loop the records in a dataset and&lt;BR /&gt;
put it on a macro variable and create file?&lt;BR /&gt;
&lt;BR /&gt;
I have attached a sample but it is not working.&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
 do until(eof);&lt;BR /&gt;
   set sample end=eof;&lt;BR /&gt;
   file "d:\data\"&amp;amp;file".html";&lt;BR /&gt;
 end;&lt;BR /&gt;
run;</description>
      <pubDate>Mon, 02 Nov 2009 10:33:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-null/m-p/10506#M838</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-11-02T10:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: data _null_</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-null/m-p/10507#M839</link>
      <description>do you want to write the names of the variables to a file ?&lt;BR /&gt;
&lt;BR /&gt;
%let file = variables;&lt;BR /&gt;
data _null_;&lt;BR /&gt;
  set sashelp.vcolumn(where=(libname='SASHELP' and memname='CLASS'));&lt;BR /&gt;
  file "d:\&amp;amp;file..html" dsd;&lt;BR /&gt;
  put name @;&lt;BR /&gt;
run;</description>
      <pubDate>Mon, 02 Nov 2009 12:02:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-null/m-p/10507#M839</guid>
      <dc:creator>GertNissen</dc:creator>
      <dc:date>2009-11-02T12:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: data _null_</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-null/m-p/10508#M840</link>
      <description>or do you want to create a new file name from the content of your data ?&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
  set sashelp.class;&lt;BR /&gt;
  filename= cats('d:\',name,'.htm');&lt;BR /&gt;
  file dummy filevar=filename dsd;&lt;BR /&gt;
  put age;&lt;BR /&gt;
run;</description>
      <pubDate>Mon, 02 Nov 2009 12:05:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-null/m-p/10508#M840</guid>
      <dc:creator>GertNissen</dc:creator>
      <dc:date>2009-11-02T12:05:17Z</dc:date>
    </item>
  </channel>
</rss>

