<?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/833527#M329510</link>
    <description>&lt;P&gt;Line by line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsref/n15o12lpyoe4gfn1y1vcp6xs6966.htm" target="_self"&gt;File Statement&lt;/A&gt; specifies the output file for the Put Statements to come.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;file ”&amp;amp;G_IFC_PATH/DATA/WDATA/cmsdate.txt”;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This seems to put the &amp;amp;acdt macro variable into some desired format (I can't see&amp;nbsp;&amp;amp;acdt).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;cmsdate=put(compress(put(&amp;amp;acdt,yymmdd10.),’-’),8.):&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This Put Statement puts the value of cmsdate in the first column in the file you specified in the File Statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;put @1 cmsdate $8.;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Sep 2022 08:10:51 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2022-09-15T08:10:51Z</dc:date>
    <item>
      <title>Data _null_</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-null/m-p/833526#M329509</link>
      <description>I have this at the end of a sas file&lt;BR /&gt;&lt;BR /&gt;Data_null_;&lt;BR /&gt;file ”&amp;amp;G_IFC_PATH/DATA/WDATA/cmsdate.txt”;&lt;BR /&gt;cmsdate=put(compress(put(&amp;amp;acdt,yymmdd10.),’-’),8.):&lt;BR /&gt;put @1 cmsdate $8.;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;What does this do? Since no output dataset or temp dataset saved, does it changing the content of txt file? Does variable cmsdate still exist in the system after this program is run?</description>
      <pubDate>Thu, 15 Sep 2022 08:01:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-null/m-p/833526#M329509</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2022-09-15T08:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Data _null_</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-null/m-p/833527#M329510</link>
      <description>&lt;P&gt;Line by line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsref/n15o12lpyoe4gfn1y1vcp6xs6966.htm" target="_self"&gt;File Statement&lt;/A&gt; specifies the output file for the Put Statements to come.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;file ”&amp;amp;G_IFC_PATH/DATA/WDATA/cmsdate.txt”;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This seems to put the &amp;amp;acdt macro variable into some desired format (I can't see&amp;nbsp;&amp;amp;acdt).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;cmsdate=put(compress(put(&amp;amp;acdt,yymmdd10.),’-’),8.):&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This Put Statement puts the value of cmsdate in the first column in the file you specified in the File Statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;put @1 cmsdate $8.;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 08:10:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-null/m-p/833527#M329510</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-09-15T08:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Data _null_</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-null/m-p/833528#M329511</link>
      <description>&lt;P&gt;I recommend to review the documentasion first.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/lrcon/9.4/n0elquksqmdambn11jprcl6d1fxw.htm#n1q67b96axz10dn14y1pkcjunlcd" target="_self"&gt;https://documentation.sas.com/doc/en/lrcon/9.4/n0elquksqmdambn11jprcl6d1fxw.htm#n1q67b96axz10dn14y1pkcjunlcd&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;gt; What does this do?&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Since no output dataset or temp dataset saved, does it changing the content of txt file?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The text file is rewritten because it is put into the file specified in the file statement.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;gt; Does variable cmsdate still exist in the system after this program is run?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;No dataset is generated, so no variables exist.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 08:12:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-null/m-p/833528#M329511</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2022-09-15T08:12:13Z</dc:date>
    </item>
  </channel>
</rss>

