<?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 Export csv without varible label in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Export-csv-without-varible-label/m-p/410075#M100216</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I'm trying to generate a set of random data and export then Numpy in Python environment can read and work on. So I would export the data without var label and learned below and code as attached with &lt;EM&gt;label x='00'x,&amp;nbsp;&lt;/EM&gt;but x is still there, see attached csv&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data MYSECOND.BIRANDOM;
call streaminit(1234);
do i=1 to 100;
   x=rand("normal", 20, 3);
   /*y=0;*/
   output;
   end;
do i=101 to 200;
   x=rand("normal", 30, 3);
   output;
   /*y=0;*/
   end;
Drop i;   
run;   
proc print data=mysecond.birandom; var x; label x='00'x; 
run;
/* Option group 5 (GRAPH SIZE) parameters. */
/*--Set output size--*/
ods graphics / reset imagemap;

/*--SGPLOT proc statement--*/
proc sgplot data=mysecond.BIRANDOM;
	/*--Histogram settings--*/
	histogram x / scale=COUNT SHOWBINS;

	/*--Vertical or Response Axis--*/
	yaxis grid;
run;

/*ods graphics / reset;
ods noproctitle;
ods graphics / imagemap=on;

proc princomp data=mysecond.BIRANDOM plots(only)=(scree);
	var x y;
run;*/
/* Stream a CSV representation of SASHELP.CARS directly to the user's browser. */

proc export data=mysecond.birandom
            outfile="/folders/myfolders/MySimulation/birandom.csv"
            dbms=csv 
            replace;
            label;
run;

%let _DATAOUT_MIME_TYPE=text/csv;
%let _DATAOUT_NAME=birandom.csv;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#n17dcq1elcvpvkn1pkecj41cva6j.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#n17dcq1elcvpvkn1pkecj41cva6j.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone advise where went wrong and how to fix it, thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 03 Nov 2017 04:36:52 GMT</pubDate>
    <dc:creator>Michaelcwang2</dc:creator>
    <dc:date>2017-11-03T04:36:52Z</dc:date>
    <item>
      <title>Export csv without varible label</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-csv-without-varible-label/m-p/410075#M100216</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I'm trying to generate a set of random data and export then Numpy in Python environment can read and work on. So I would export the data without var label and learned below and code as attached with &lt;EM&gt;label x='00'x,&amp;nbsp;&lt;/EM&gt;but x is still there, see attached csv&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data MYSECOND.BIRANDOM;
call streaminit(1234);
do i=1 to 100;
   x=rand("normal", 20, 3);
   /*y=0;*/
   output;
   end;
do i=101 to 200;
   x=rand("normal", 30, 3);
   output;
   /*y=0;*/
   end;
Drop i;   
run;   
proc print data=mysecond.birandom; var x; label x='00'x; 
run;
/* Option group 5 (GRAPH SIZE) parameters. */
/*--Set output size--*/
ods graphics / reset imagemap;

/*--SGPLOT proc statement--*/
proc sgplot data=mysecond.BIRANDOM;
	/*--Histogram settings--*/
	histogram x / scale=COUNT SHOWBINS;

	/*--Vertical or Response Axis--*/
	yaxis grid;
run;

/*ods graphics / reset;
ods noproctitle;
ods graphics / imagemap=on;

proc princomp data=mysecond.BIRANDOM plots(only)=(scree);
	var x y;
run;*/
/* Stream a CSV representation of SASHELP.CARS directly to the user's browser. */

proc export data=mysecond.birandom
            outfile="/folders/myfolders/MySimulation/birandom.csv"
            dbms=csv 
            replace;
            label;
run;

%let _DATAOUT_MIME_TYPE=text/csv;
%let _DATAOUT_NAME=birandom.csv;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#n17dcq1elcvpvkn1pkecj41cva6j.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#n17dcq1elcvpvkn1pkecj41cva6j.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone advise where went wrong and how to fix it, thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 04:36:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-csv-without-varible-label/m-p/410075#M100216</guid>
      <dc:creator>Michaelcwang2</dc:creator>
      <dc:date>2017-11-03T04:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Export csv without varible label</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-csv-without-varible-label/m-p/410097#M100223</link>
      <description>&lt;P&gt;What version of SAS are you using?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are using 9.2 or later, use the&amp;nbsp;&lt;SPAN&gt;PUTNAMES=NO statement.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 07:06:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-csv-without-varible-label/m-p/410097#M100223</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-11-03T07:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Export csv without varible label</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-csv-without-varible-label/m-p/410098#M100224</link>
      <description>&lt;P&gt;You want to create a CSV file without the header row?&lt;/P&gt;
&lt;P&gt;Then just use a DATA step.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  set mysecond.birandom;
  file "/folders/myfolders/MySimulation/birandom.csv" dsd ;
  put (_all_) (+0);
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Nov 2017 07:16:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-csv-without-varible-label/m-p/410098#M100224</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-11-03T07:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Export csv without varible label</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-csv-without-varible-label/m-p/410101#M100226</link>
      <description>Hi Draycut,&lt;BR /&gt;It works and thank you!</description>
      <pubDate>Fri, 03 Nov 2017 07:28:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-csv-without-varible-label/m-p/410101#M100226</guid>
      <dc:creator>Michaelcwang2</dc:creator>
      <dc:date>2017-11-03T07:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Export csv without varible label</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-csv-without-varible-label/m-p/410102#M100227</link>
      <description>Hi Tom,&lt;BR /&gt;Also appreciate your response.</description>
      <pubDate>Fri, 03 Nov 2017 07:29:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-csv-without-varible-label/m-p/410102#M100227</guid>
      <dc:creator>Michaelcwang2</dc:creator>
      <dc:date>2017-11-03T07:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Export csv without varible label</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-csv-without-varible-label/m-p/410104#M100228</link>
      <description>&lt;P&gt;..though I completely agree with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;that the best way to do it is with the FILE statement in the data step. But since you had already written an EXPORT procedure, this was probably the quickest and dirtiest fix &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 07:36:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-csv-without-varible-label/m-p/410104#M100228</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-11-03T07:36:14Z</dc:date>
    </item>
  </channel>
</rss>

