<?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 which one is the correct about .csv file ? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/which-one-is-the-correct-about-csv-file/m-p/766949#M25305</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname cert 'C:\SAS data and program\data\data set used in OG of SAS base\cert';
%let Location = USA;
data work.FlightEmpData;
set Cert.empdata cert.empdatu cert.empdatu2;
where Country = "&amp;amp;Location" and Salary &amp;gt;= 30000;
run;
proc sort data = work.FlightEmpData;
by descending Salary;
run;
proc export data = work.FlightEmpData
            outfile = 'C:\SAS data and program\program\10 scenarios of sas base OG\FlightEmpData.csv'
            dbms = csv
			replace;
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;the code above generate a .csv file , like excel , like the following :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tianerhu_0-1631212926299.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63479iAD11E1C9137F7F9E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tianerhu_0-1631212926299.png" alt="tianerhu_0-1631212926299.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;but the answer on the textbook : (it's a notepad)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tianerhu_2-1631213044687.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63481iD6A8686032B9EFDD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tianerhu_2-1631213044687.png" alt="tianerhu_2-1631213044687.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;how to generate a notepad as the answer on the book ?&lt;/P&gt;</description>
    <pubDate>Thu, 09 Sep 2021 18:45:00 GMT</pubDate>
    <dc:creator>tianerhu</dc:creator>
    <dc:date>2021-09-09T18:45:00Z</dc:date>
    <item>
      <title>which one is the correct about .csv file ?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/which-one-is-the-correct-about-csv-file/m-p/766949#M25305</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname cert 'C:\SAS data and program\data\data set used in OG of SAS base\cert';
%let Location = USA;
data work.FlightEmpData;
set Cert.empdata cert.empdatu cert.empdatu2;
where Country = "&amp;amp;Location" and Salary &amp;gt;= 30000;
run;
proc sort data = work.FlightEmpData;
by descending Salary;
run;
proc export data = work.FlightEmpData
            outfile = 'C:\SAS data and program\program\10 scenarios of sas base OG\FlightEmpData.csv'
            dbms = csv
			replace;
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;the code above generate a .csv file , like excel , like the following :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tianerhu_0-1631212926299.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63479iAD11E1C9137F7F9E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tianerhu_0-1631212926299.png" alt="tianerhu_0-1631212926299.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;but the answer on the textbook : (it's a notepad)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tianerhu_2-1631213044687.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63481iD6A8686032B9EFDD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tianerhu_2-1631213044687.png" alt="tianerhu_2-1631213044687.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;how to generate a notepad as the answer on the book ?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 18:45:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/which-one-is-the-correct-about-csv-file/m-p/766949#M25305</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-09-09T18:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: which one is the correct about .csv file ?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/which-one-is-the-correct-about-csv-file/m-p/766968#M25306</link>
      <description>&lt;P&gt;Open the file with Notepad instead of Excel. Right-click, select "Open with", and then Notepad (or another text editor).&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 19:46:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/which-one-is-the-correct-about-csv-file/m-p/766968#M25306</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-09-09T19:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: which one is the correct about .csv file ?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/which-one-is-the-correct-about-csv-file/m-p/766971#M25307</link>
      <description>&lt;P&gt;A CSV file is a text file.&amp;nbsp; Why post a photograph text? Why not just post the text from the file?&amp;nbsp; For example from the command line just use the DOS type command to display the text of the file.&amp;nbsp; Or open the file with a text editor like notepad and then copy and paste the lines of text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Be very careful opening a CSV with Excel as Excel will transform some of the text in the file based on its assumptions.&amp;nbsp; For example strings with digits separated by hyphens might get converted into a date value by Excel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 20:13:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/which-one-is-the-correct-about-csv-file/m-p/766971#M25307</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-09-09T20:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: which one is the correct about .csv file ?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/which-one-is-the-correct-about-csv-file/m-p/766977#M25308</link>
      <description>CSV files open by default with Excel but CSV literally means comma (semicolon) separated data in a text file. &lt;BR /&gt;So open your file with NotePad and it will be exactly the same as the image.&lt;BR /&gt;&lt;BR /&gt;In general, you actually shouldn't get in the habit of opening CSV with Excel. When you do that, Excel essentially runs it's own PROC IMPORT in the back end and converts the data so it may not match the text file. I once spent a long time debugging an issue with dates because Excel showed them as MMDDYY but they were actually DDMMYY in the CSV file. Never wasting 4 hours on that again.</description>
      <pubDate>Thu, 09 Sep 2021 20:47:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/which-one-is-the-correct-about-csv-file/m-p/766977#M25308</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-09-09T20:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: which one is the correct about .csv file ?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/which-one-is-the-correct-about-csv-file/m-p/766981#M25309</link>
      <description>&lt;P&gt;Right-click on the file&lt;/P&gt;
&lt;P&gt;select propertises &lt;/P&gt;
&lt;P&gt;click Change...&lt;/P&gt;
&lt;P&gt;select notepad&lt;/P&gt;
&lt;P&gt;select Ok&lt;/P&gt;
&lt;P&gt;select apply&lt;/P&gt;
&lt;P&gt;This method works.&lt;/P&gt;
&lt;P&gt;Thank you all for your helps.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 21:42:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/which-one-is-the-correct-about-csv-file/m-p/766981#M25309</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-09-09T21:42:40Z</dc:date>
    </item>
  </channel>
</rss>

