<?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 Creation csv file and 'put' statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creation-csv-file-and-put-statement/m-p/491533#M128924</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please explain what&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  put (_all_) (+0);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;means in the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  file 'cars_noheader.csv' dsd ;
  set sashelp.cars;
  put (_all_) (+0);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Aug 2018 07:01:39 GMT</pubDate>
    <dc:creator>DmytroYermak</dc:creator>
    <dc:date>2018-08-31T07:01:39Z</dc:date>
    <item>
      <title>Creation csv file and 'put' statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creation-csv-file-and-put-statement/m-p/491533#M128924</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please explain what&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  put (_all_) (+0);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;means in the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  file 'cars_noheader.csv' dsd ;
  set sashelp.cars;
  put (_all_) (+0);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 07:01:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creation-csv-file-and-put-statement/m-p/491533#M128924</guid>
      <dc:creator>DmytroYermak</dc:creator>
      <dc:date>2018-08-31T07:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Creation csv file and 'put' statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creation-csv-file-and-put-statement/m-p/491535#M128925</link>
      <description>&lt;P&gt;_all_ is a keyword that gives you all variables present in the PDV.&lt;/P&gt;
&lt;P&gt;If you use _all_ without anything else, you get a list including automatic variables in this form:&lt;/P&gt;
&lt;PRE&gt;Make=Acura Model=MDX Type=SUV Origin=Asia DriveTrain=All MSRP=$36,945 Invoice=$33,337 EngineSize=3.5 Cylinders=6 Horsepower=265
MPG_City=17 MPG_Highway=23 Weight=4451 Wheelbase=106 Length=189 _ERROR_=0 _N_=1&lt;/PRE&gt;
&lt;P&gt;If you add the "pseudo-format-specification-with-pointer-control" +0 to all the variables (that's why you need the brackets), you get this:&lt;/P&gt;
&lt;PRE&gt;Acura MDX SUV Asia All $36,945 $33,337 3.5 6 265 17 23 4451 106 189&lt;/PRE&gt;
&lt;P&gt;I got this by applying Maxim 4 and running this code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  set sashelp.cars (obs=1);
  put (_all_) (+0);
run;

data _null_;
  set sashelp.cars (obs=1);
  put _all_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and inspecting the log.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 07:17:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creation-csv-file-and-put-statement/m-p/491535#M128925</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-31T07:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Creation csv file and 'put' statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creation-csv-file-and-put-statement/m-p/491540#M128932</link>
      <description>&lt;P&gt;Thank you for the quick response and the explanations! It is very useful.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 07:30:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creation-csv-file-and-put-statement/m-p/491540#M128932</guid>
      <dc:creator>DmytroYermak</dc:creator>
      <dc:date>2018-08-31T07:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Creation csv file and 'put' statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creation-csv-file-and-put-statement/m-p/491541#M128933</link>
      <description>&lt;P&gt;I have to say that I could not find a specific reference to the behaviour of _all_ with the modifier in the documentation of PUT. Only the named list output of _all_ without the modifier is documented.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 07:31:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creation-csv-file-and-put-statement/m-p/491541#M128933</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-31T07:31:31Z</dc:date>
    </item>
  </channel>
</rss>

