<?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: how to read the csv file? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742576#M232318</link>
    <description>&lt;P&gt;You missed making country bigger.&lt;/P&gt;</description>
    <pubDate>Thu, 20 May 2021 01:27:52 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2021-05-20T01:27:52Z</dc:date>
    <item>
      <title>how to read the csv file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742531#M232291</link>
      <description>&lt;P&gt;The following is a csv file&lt;/P&gt;
&lt;P&gt;Name,Hire Date,Company,Country,Date of Birth &lt;BR /&gt;Gisela S. Santos,8/12/17,Pede Nunc Sed Limited,Micronesia,8/21/1971 &lt;BR /&gt;Maxwell L. Cooley,9/4/17,A LLP,Somalia,4/30/1975 &lt;BR /&gt;Thane P. Obrien,10/28/17,Consectetuer Limited,Jamaica,4/23/1988 &lt;BR /&gt;Minerva C. Conley,1/5/18,Feugiat Tellus Lorem Institute,Fiji,2/18/1975 &lt;BR /&gt;Kylee R. Finch,10/31/17,Magna Incorporated,Myanmar,5/18/1973 &lt;BR /&gt;Calista F. Chambers,9/11/17,Facilisis Incorporated,Libya,3/4/1972 &lt;BR /&gt;Fuller X. Bradford,1/27/18,Morbi Incorporated,Saint Pierre and Miquelon,12/1/1976&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the following is my code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data ABC;
infile 'C:\Users\liaodong\Documents\My SAS Files\prep guide\base
\practice data\cert\new_hires.csv'   dsd firstobs=2;
input  name $16. hire_date company $ country $ date_of_birth;
run;
proc print data = ABC;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;the following is output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tianerhu_0-1621467044219.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59584i415D5F07BE5E12CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tianerhu_0-1621467044219.png" alt="tianerhu_0-1621467044219.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;how&amp;nbsp; to read the hire_date and date_of_birth ?&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 23:31:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742531#M232291</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-05-19T23:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to read the csv file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742535#M232293</link>
      <description>You haven't specified the informats for your date variables. Add an INFORMAT statement before the INPUT to tell SAS what the format of the date variable is in the file. You may also want a format statement so it shows up as a date.&lt;BR /&gt;&lt;BR /&gt;informat hire_date date_of_birth mmddyy10.;&lt;BR /&gt;format hire_date date_of_birth ddmmyyd10.;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 19 May 2021 23:45:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742535#M232293</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-05-19T23:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to read the csv file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742541#M232297</link>
      <description>&lt;P&gt;does not work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tianerhu_0-1621469528857.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59585i78A9D49FB8C9988C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tianerhu_0-1621469528857.png" alt="tianerhu_0-1621469528857.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 00:12:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742541#M232297</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-05-20T00:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to read the csv file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742542#M232298</link>
      <description>&lt;P&gt;Please post the complete SAS log of your program so we can see more clearly what is happening.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 00:19:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742542#M232298</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-05-20T00:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to read the csv file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742543#M232299</link>
      <description>&lt;P&gt;138 data ABC;&lt;BR /&gt;139 infile 'C:\Users\liaodong\Documents\My SAS Files\prep guide\base&lt;BR /&gt;140 \practice data\cert\new_hires.csv' dsd firstobs=2;&lt;BR /&gt;141 input name $16. hire_date company $ country $ date_of_birth;&lt;BR /&gt;142 informat hire_date date_of_birth mmddyy10.;&lt;BR /&gt;143 format hire_date date_of_birth mmddyy10.;&lt;BR /&gt;144 run;&lt;/P&gt;
&lt;P&gt;NOTE: The infile 'C:\Users\liaodong\Documents\My SAS Files\prep guide\base\practice&lt;BR /&gt;data\cert\new_hires.csv' is:&lt;/P&gt;
&lt;P&gt;Filename=C:\Users\liaodong\Documents\My SAS Files\prep guide\base\practice&lt;BR /&gt;data\cert\new_hires.csv,&lt;BR /&gt;RECFM=V,LRECL=32767,File Size (bytes)=15802,&lt;BR /&gt;Last Modified=07May2021:17:08:56,&lt;BR /&gt;Create Time=11Jan2021:18:37:55&lt;/P&gt;
&lt;P&gt;NOTE: Invalid data for date_of_birth in line 2 48-57.&lt;BR /&gt;RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9&lt;BR /&gt;2 Gisela S. Santos,8/12/17,Pede Nunc Sed Limited,Micronesia,8/21/1971 80&lt;BR /&gt;name=Gisela S. Santos hire_date=. company=8/12/17 country=Pede Nun date_of_birth=. _ERROR_=1 _N_=1&lt;BR /&gt;NOTE: Invalid data for hire_date in line 3 17-17.&lt;BR /&gt;NOTE: Invalid data for date_of_birth in line 3 32-38.&lt;BR /&gt;3 Maxwell L. Cooley,9/4/17,A LLP,Somalia,4/30/1975 80&lt;BR /&gt;name=Maxwell L. Coole hire_date=. company=9/4/17 country=A LLP date_of_birth=. _ERROR_=1 _N_=2&lt;BR /&gt;NOTE: Invalid data for hire_date in line 5 17-17.&lt;BR /&gt;NOTE: Invalid data for date_of_birth in line 5 57-60.&lt;BR /&gt;5 Minerva C. Conley,1/5/18,Feugiat Tellus Lorem Institute,Fiji,2/18/1975 80&lt;BR /&gt;name=Minerva C. Conle hire_date=. company=1/5/18 country=Feugiat date_of_birth=. _ERROR_=1 _N_=4&lt;BR /&gt;NOTE: Invalid data for hire_date in line 6 17-23.&lt;BR /&gt;6 Kylee R. Finch,10/31/17,Magna Incorporated,Myanmar,5/18/1973 80&lt;BR /&gt;name=Kylee R. Finch,1 hire_date=. company=Magna In country=Myanmar date_of_birth=05/18/1973&lt;BR /&gt;_ERROR_=1 _N_=5&lt;BR /&gt;NOTE: Invalid data for hire_date in line 7 17-19.&lt;BR /&gt;NOTE: Invalid data for date_of_birth in line 7 52-56.&lt;BR /&gt;7 Calista F. Chambers,9/11/17,Facilisis Incorporated,Libya,3/4/1972 80&lt;BR /&gt;name=Calista F. Chamb hire_date=. company=9/11/17 country=Facilisi date_of_birth=. _ERROR_=1 _N_=6&lt;BR /&gt;NOTE: Invalid data for hire_date in line 8 17-18.&lt;BR /&gt;NOTE: Invalid data for date_of_birth in line 8 47-71.&lt;BR /&gt;8 Fuller X. Bradford,1/27/18,Morbi Incorporated,Saint Pierre and Miquelon,12/1/1976&lt;BR /&gt;91 160&lt;BR /&gt;name=Fuller X. Bradfo hire_date=. company=1/27/18 country=Morbi In date_of_birth=. _ERROR_=1 _N_=7&lt;BR /&gt;NOTE: Invalid data for hire_date in line 10 17-17.&lt;BR /&gt;NOTE: Invalid data for date_of_birth in line 10 44-48.&lt;BR /&gt;10 Melinda Y. Burton,2/23/18,Neque Industries,Japan,1/4/1992&lt;BR /&gt;91 160&lt;BR /&gt;name=Melinda Y. Burto hire_date=. company=2/23/18 country=Neque In date_of_birth=. _ERROR_=1 _N_=9&lt;BR /&gt;NOTE: Invalid data for hire_date in line 11 17-21.&lt;BR /&gt;11 Alan V. Gibbs,1/16/18,Metus Vitae Company,Kyrgyzstan,10/29/1982&lt;BR /&gt;91 160&lt;BR /&gt;name=Alan V. Gibbs,1/ hire_date=. company=Metus Vi country=Kyrgyzst date_of_birth=10/29/1982&lt;BR /&gt;_ERROR_=1 _N_=10&lt;BR /&gt;NOTE: Invalid data for hire_date in line 12 17-17.&lt;BR /&gt;NOTE: Invalid data for date_of_birth in line 12 48-51.&lt;BR /&gt;12 Raphael W. Carter,4/21/18,Magna Ut Corporation,Fiji,4/3/1993&lt;BR /&gt;RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9&lt;BR /&gt;91 160&lt;BR /&gt;name=Raphael W. Carte hire_date=. company=4/21/18 country=Magna Ut date_of_birth=. _ERROR_=1 _N_=11&lt;BR /&gt;NOTE: Invalid data for date_of_birth in line 14 43-59.&lt;BR /&gt;14 Anjolie P. Finch,1/25/18,Justo Foundation,Equatorial Guinea,9/10/1972&lt;BR /&gt;91 160&lt;BR /&gt;name=Anjolie P. Finch hire_date=. company=1/25/18 country=Justo Fo date_of_birth=. _ERROR_=1 _N_=13&lt;BR /&gt;NOTE: Invalid data for hire_date in line 15 17-17.&lt;BR /&gt;NOTE: Invalid data for date_of_birth in line 15 44-53.&lt;BR /&gt;15 Ciaran I. Salazar,12/6/17,Ipsum Associates,Montenegro,10/23/1987&lt;BR /&gt;91 160&lt;BR /&gt;name=Ciaran I. Salaza hire_date=. company=12/6/17 country=Ipsum As date_of_birth=. _ERROR_=1 _N_=14&lt;BR /&gt;NOTE: Invalid data for hire_date in line 17 17-20.&lt;BR /&gt;NOTE: Invalid data for date_of_birth in line 17 58-65.&lt;BR /&gt;17 Kimberly L. Randolph,9/28/17,Quam Curabitur Incorporated,Botswana,2/1/1996&lt;BR /&gt;91 160&lt;BR /&gt;name=Kimberly L. Rand hire_date=. company=9/28/17 country=Quam Cur date_of_birth=. _ERROR_=1 _N_=16&lt;BR /&gt;NOTE: Invalid data for hire_date in line 18 17-17.&lt;BR /&gt;NOTE: Invalid data for date_of_birth in line 18 50-58.&lt;BR /&gt;18 Camden G. Rosales,4/18/18,Ac Eleifend Foundation,Guatemala,5/26/1976&lt;BR /&gt;91 160&lt;BR /&gt;name=Camden G. Rosale hire_date=. company=4/18/18 country=Ac Eleif date_of_birth=. _ERROR_=1 _N_=17&lt;BR /&gt;NOTE: Invalid data for date_of_birth in line 19 57-85.&lt;BR /&gt;19 Skyler D. Larsen,8/27/17,Curabitur Consequat Industries,"Virgin Islands, United States",9/&lt;BR /&gt;91 20/1980 160&lt;BR /&gt;name=Skyler D. Larsen hire_date=. company=8/27/17 country=Curabitu date_of_birth=. _ERROR_=1 _N_=18&lt;BR /&gt;NOTE: Invalid data for hire_date in line 20 17-21.&lt;BR /&gt;20 Jacob C. Noel,5/11/18,Non Lobortis Foundation,Mauritania,1/20/1976&lt;BR /&gt;91 160&lt;BR /&gt;name=Jacob C. Noel,5/ hire_date=. company=Non Lobo country=Mauritan date_of_birth=01/20/1976&lt;BR /&gt;_ERROR_=1 _N_=19&lt;BR /&gt;NOTE: Invalid data for date_of_birth in line 21 49-56.&lt;BR /&gt;21 Scott C. Estrada,4/9/18,Ac Eleifend Corporation,Botswana,2/14/1972&lt;BR /&gt;91 160&lt;BR /&gt;name=Scott C. Estrada hire_date=. company=4/9/18 country=Ac Eleif date_of_birth=. _ERROR_=1 _N_=20&lt;BR /&gt;NOTE: Invalid data for hire_date in line 22 17-17.&lt;BR /&gt;NOTE: Invalid data for date_of_birth in line 22 47-59.&lt;BR /&gt;22 Alana P. Reynolds,3/4/18,Vitae Dolor Donec PC,Liechtenstein,3/19/1991&lt;BR /&gt;91 160&lt;BR /&gt;name=Alana P. Reynold hire_date=. company=3/4/18 country=Vitae Do date_of_birth=. _ERROR_=1 _N_=21&lt;BR /&gt;NOTE: Invalid data for hire_date in line 23 17-19.&lt;BR /&gt;NOTE: Invalid data for date_of_birth in line 23 47-51.&lt;BR /&gt;23 Carson D. Castaneda,4/3/18,Sit Amet Massa LLP,India,9/12/1977&lt;BR /&gt;91 160&lt;BR /&gt;name=Carson D. Castan hire_date=. company=4/3/18 country=Sit Amet date_of_birth=. _ERROR_=1 _N_=22&lt;BR /&gt;NOTE: Invalid data for hire_date in line 24 17-21.&lt;BR /&gt;24 Arden W. Pena,8/29/17,Dignissim Corporation,Gambia,2/18/1988&lt;BR /&gt;91 160&lt;BR /&gt;name=Arden W. Pena,8/ hire_date=. company=Dignissi country=Gambia date_of_birth=02/18/1988 _ERROR_=1&lt;BR /&gt;_N_=23&lt;BR /&gt;NOTE: Invalid data for hire_date in line 25 17-17.&lt;BR /&gt;NOTE: Invalid data for date_of_birth in line 25 38-67.&lt;BR /&gt;WARNING: Limit set by ERRORS= option reached. Further errors of this type will not be printed.&lt;BR /&gt;25 Laurel J. Rosales,1/29/18,Nisi Corp.,Svalbard and Jan Mayen Islands,8/4/1992&lt;BR /&gt;91 160&lt;BR /&gt;name=Laurel J. Rosale hire_date=. company=1/29/18 country=Nisi Cor date_of_birth=. _ERROR_=1 _N_=24&lt;BR /&gt;NOTE: 100 records were read from the infile 'C:\Users\liaodong\Documents\My SAS Files\prep&lt;BR /&gt;guide\base\practice data\cert\new_hires.csv'.&lt;BR /&gt;The minimum record length was 80.&lt;BR /&gt;The maximum record length was 160.&lt;BR /&gt;NOTE: The data set WORK.ABC has 100 observations and 5 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.05 seconds&lt;BR /&gt;cpu time 0.04 seconds&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;145 proc print data = ABC;&lt;BR /&gt;146 run;&lt;/P&gt;
&lt;P&gt;NOTE: There were 100 observations read from the data set WORK.ABC.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;real time 0.04 seconds&lt;BR /&gt;cpu time 0.04 seconds&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 00:21:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742543#M232299</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-05-20T00:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to read the csv file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742544#M232300</link>
      <description>&lt;P&gt;notice : there are no &lt;SPAN style="cursor: pointer;"&gt; quotation mark&lt;/SPAN&gt; around values of the name variable , this is the key point why this question is hard to code .&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 00:25:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742544#M232300</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-05-20T00:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to read the csv file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742548#M232302</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data ABC;
informat hire_date date_of_birth mmddyy10.;

infile 'C:\Users\liaodong\Documents\My SAS Files\prep guide\base
\practice data\cert\new_hires.csv'   dsd firstobs=2;

input  name $ hire_date company $ country $ date_of_birth;

format hire_date date_of_birth mmddyy10.;
run;

proc print data = ABC;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tianerhu_0-1621470742061.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59586i9F071199703B3703/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tianerhu_0-1621470742061.png" alt="tianerhu_0-1621470742061.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now , the code is closer to the correct , leave the name and company variables is not read properly.&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 00:34:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742548#M232302</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-05-20T00:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to read the csv file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742550#M232303</link>
      <description>&lt;P&gt;Please try this. You need INFORMATs for your character variables too as they are longer than 8 characters.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data ABC;
  infile 'C:\Users\liaodong\Documents\My SAS Files\prep guide\base\practice data\cert\new_hires.csv' dlm = ',' dsd firstobs=2;
  informat name $17. company country $30. hire_date date_of_birth mmddyy10.;
  format hire_date date_of_birth mmddyy10.;
  input  name $ hire_date company $ country $ date_of_birth;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 May 2021 00:39:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742550#M232303</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-05-20T00:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to read the csv file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742552#M232304</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data ABC;
informat hire_date date_of_birth mmddyy10.;

infile 'C:\Users\liaodong\Documents\My SAS Files\prep guide\base
\practice data\cert\new_hires.csv'   dsd firstobs=2;

length name $ 16 company $ 25;

input  name $ hire_date company $ country $ date_of_birth;

format hire_date date_of_birth mmddyy10.;
run;

proc print data = ABC;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tianerhu_1-1621471126424.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59588i7B4D294C6ED30DE6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tianerhu_1-1621471126424.png" alt="tianerhu_1-1621471126424.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Perfect .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 00:39:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742552#M232304</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-05-20T00:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to read the csv file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742554#M232305</link>
      <description>&lt;P&gt;They never were read properly. What do you think would happen if you also specified the informats for your character variables?&lt;/P&gt;
&lt;P&gt;Try it and let us know.&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 00:40:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742554#M232305</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-05-20T00:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to read the csv file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742557#M232308</link>
      <description>&lt;P&gt;I don't understand what you mean , but the output of my code (above) is right ,isn't it ?&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 00:45:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742557#M232308</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-05-20T00:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to read the csv file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742558#M232309</link>
      <description>&lt;P&gt;That's right, thank you for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 00:45:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742558#M232309</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-05-20T00:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to read the csv file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742559#M232310</link>
      <description>What happens if you specify an informat for your character variables instead of using a LENGTH statement. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 May 2021 00:46:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742559#M232310</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-05-20T00:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to read the csv file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742560#M232311</link>
      <description>&lt;P&gt;wait, the output of your code is wrong .&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 00:48:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742560#M232311</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-05-20T00:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to read the csv file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742562#M232312</link>
      <description>&lt;P&gt;I need to use length statement ,not use 'informat name $ 16' , the former is correct , and the latter is wrong. I don't know why, just judge it according to the output.&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 00:51:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742562#M232312</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-05-20T00:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to read the csv file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742565#M232313</link>
      <description>&lt;P&gt;Your NAME and COUNTRY variables aren't long enough. Try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;length name company country $ 25;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 May 2021 00:58:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742565#M232313</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-05-20T00:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to read the csv file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742568#M232314</link>
      <description>&lt;P&gt;You are right. the length is not enough.&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 01:05:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742568#M232314</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-05-20T01:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to read the csv file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742570#M232315</link>
      <description>&lt;P&gt;the length is not enough, you are right.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data ABC;

infile 'C:\Users\liaodong\Documents\My SAS Files\prep guide\base
\practice data\cert\new_hires.csv'   dsd firstobs=2;

length name $ 20 company $ 32;

input  name $  hire_date company $ country $  date_of_birth;

informat hire_date date_of_birth mmddyy10.;

format hire_date date_of_birth mmddyy10.;
run;

proc print data = ABC;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tianerhu_0-1621472820824.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59590i67789D6B2C8DE17C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tianerhu_0-1621472820824.png" alt="tianerhu_0-1621472820824.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;now it is correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 01:07:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742570#M232315</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-05-20T01:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to read the csv file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742576#M232318</link>
      <description>&lt;P&gt;You missed making country bigger.&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 01:27:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742576#M232318</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-05-20T01:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to read the csv file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742582#M232322</link>
      <description>&lt;P&gt;what I have done ? I am so careless.&lt;/P&gt;
&lt;P&gt;Thank you for your remind.&lt;/P&gt;
&lt;P&gt;data ABC;&lt;/P&gt;
&lt;P&gt;infile 'C:\Users\liaodong\Documents\My SAS Files\prep guide\base&lt;BR /&gt;\practice data\cert\new_hires.csv' dsd firstobs=2;&lt;/P&gt;
&lt;P&gt;length name $ 20 company $ 32 country $10;&lt;/P&gt;
&lt;P&gt;input name $ hire_date company $ country $ date_of_birth;&lt;/P&gt;
&lt;P&gt;informat hire_date date_of_birth mmddyy10.;&lt;/P&gt;
&lt;P&gt;format hire_date date_of_birth mmddyy10.;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc print data = ABC;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tianerhu_0-1621477776122.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59592i5A886C938A166482/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tianerhu_0-1621477776122.png" alt="tianerhu_0-1621477776122.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 02:29:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-the-csv-file/m-p/742582#M232322</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-05-20T02:29:44Z</dc:date>
    </item>
  </channel>
</rss>

