<?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 Removing double quotes while infile with a csv file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Removing-double-quotes-while-infile-with-a-csv-file/m-p/534711#M146767</link>
    <description>&lt;P&gt;I was tasked to find a data set for an assignment.&amp;nbsp; While trying to read in the csv, I wanted to take a look at it before I proceeded with my relatively simple assignment.&amp;nbsp; Here is the code that I first used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data basketball;&lt;/P&gt;&lt;P&gt;infile "C:\Users\wonha\Desktop\SMU Class Material\6308 SAS II and Databases\mens-professional-basketball\basketball_player_allstar.csv" dlm=","&lt;BR /&gt;firstobs=2 dsd;&lt;BR /&gt;&lt;BR /&gt;input ID $ L_Name $ F_Name $ Season $ Conference $ League $ Games Minutes Points Off_Rebounds Def_Rebounds Rebounds Assists Steals Blocks Turnovers&lt;BR /&gt;Fouls FG_Attempt FG_Made FT_Attempt FT_Made Threes_Attempt Threes_Made;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc print data=basketball (Firstobs=1 obs=5);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what appears in the results viewer:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27076i6C6B994654D2C93E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought that I should then use an informat for the ID, first name, and last name variables, so I use the $12. option on each.&lt;/P&gt;&lt;P&gt;data basketball;&lt;/P&gt;&lt;P&gt;infile "C:\Users\wonha\Desktop\SMU Class Material\6308 SAS II and Databases\mens-professional-basketball\basketball_player_allstar.csv" dlm=","&lt;BR /&gt;firstobs=2 dsd;&lt;BR /&gt;&lt;BR /&gt;input ID $12. L_Name $12. F_Name $12. Season $ Conference $ League $ Games Minutes Points Off_Rebounds Def_Rebounds Rebounds Assists Steals Blocks Turnovers&lt;BR /&gt;Fouls FG_Attempt FG_Made FT_Attempt FT_Made Threes_Attempt Threes_Made;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc print data=basketball (Firstobs=1 obs=5);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which produced the second set of results:&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27077i62BE975DC58E6058/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I took a look at my csv file in a text file and found that each variable and value were in double quotation marks. Here is a short portion of the txt file of the dataset:&lt;/P&gt;&lt;P&gt;"player_id","last_name","first_name","season_id","conference","league_id","games_played","minutes","points","o_rebounds","d_rebounds","rebounds","assists","steals","blocks","turnovers","personal_fouls","fg_attempted","fg_made","ft_attempted","ft_made","three_attempted","three_made"&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1978","West","NBA","1","28","11",,,"8","3",,,,,"12","5","2","1",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1969","East","NBA","1","18","10",,,"11","4",,,,,"8","4","2","2",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1988","West","NBA","1","13","4",,,"3","0",,,,,"6","1","2","2",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1987","West","NBA","1","14","10",,,"4","0",,,,,"9","4","2","2",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1986","West","NBA","1","27","10",,,"8","3",,,,,"9","4","2","2",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1985","West","NBA","1","32","21",,,"7","2",,,,,"15","9","4","3",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1984","West","NBA","1","23","11",,,"6","1",,,,,"10","5","2","1",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1983","West","NBA","1","37","25",,,"13","2",,,,,"19","11","4","3",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1982","West","NBA","1","32","20",,,"6","5",,,,,"12","9","3","2",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1980","West","NBA","1","23","15",,,"6","4",,,,,"9","6","3","3",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1979","West","NBA","1","30","17",,,"16","9",,,,,"17","6","6","5",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1976","West","NBA","1","23","21",,,"4","2",,,,,"14","8","6","5",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1975","West","NBA","1","36","22",,,"5","3",,,,,"16","9","4","4",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1974","West","NBA","1","19","7",,,"10","3",,,,,"10","3","2","1",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1973","West","NBA","1","23","14",,,"8","6",,,,,"11","7","0","0",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1972","West","NBA","1","98",,,,,,,,,,,,,,,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1971","West","NBA","1","19","12",,,"7","2",,,,,"10","5","2","2",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1970","West","NBA","1","30","19",,,"14","1",,,,,"16","8","4","3",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1981","West","NBA","1","22","2","1","2","3","1","3","2","1","3","10","1","0","0","0","0"&lt;BR /&gt;"abdursh01","A-Rahim","Shareef","2001","East","NBA","1","21","9","1","5","6","0","0","0","0","2","4","4","0","0","1","1"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried various informat and format options, but get about the same as picture above.&amp;nbsp; Is there any way to remove all of the quotation marks while trying to read in the .csv file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Feb 2019 03:36:55 GMT</pubDate>
    <dc:creator>wgonzalez</dc:creator>
    <dc:date>2019-02-12T03:36:55Z</dc:date>
    <item>
      <title>Removing double quotes while infile with a csv file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-double-quotes-while-infile-with-a-csv-file/m-p/534711#M146767</link>
      <description>&lt;P&gt;I was tasked to find a data set for an assignment.&amp;nbsp; While trying to read in the csv, I wanted to take a look at it before I proceeded with my relatively simple assignment.&amp;nbsp; Here is the code that I first used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data basketball;&lt;/P&gt;&lt;P&gt;infile "C:\Users\wonha\Desktop\SMU Class Material\6308 SAS II and Databases\mens-professional-basketball\basketball_player_allstar.csv" dlm=","&lt;BR /&gt;firstobs=2 dsd;&lt;BR /&gt;&lt;BR /&gt;input ID $ L_Name $ F_Name $ Season $ Conference $ League $ Games Minutes Points Off_Rebounds Def_Rebounds Rebounds Assists Steals Blocks Turnovers&lt;BR /&gt;Fouls FG_Attempt FG_Made FT_Attempt FT_Made Threes_Attempt Threes_Made;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc print data=basketball (Firstobs=1 obs=5);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what appears in the results viewer:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27076i6C6B994654D2C93E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought that I should then use an informat for the ID, first name, and last name variables, so I use the $12. option on each.&lt;/P&gt;&lt;P&gt;data basketball;&lt;/P&gt;&lt;P&gt;infile "C:\Users\wonha\Desktop\SMU Class Material\6308 SAS II and Databases\mens-professional-basketball\basketball_player_allstar.csv" dlm=","&lt;BR /&gt;firstobs=2 dsd;&lt;BR /&gt;&lt;BR /&gt;input ID $12. L_Name $12. F_Name $12. Season $ Conference $ League $ Games Minutes Points Off_Rebounds Def_Rebounds Rebounds Assists Steals Blocks Turnovers&lt;BR /&gt;Fouls FG_Attempt FG_Made FT_Attempt FT_Made Threes_Attempt Threes_Made;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc print data=basketball (Firstobs=1 obs=5);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which produced the second set of results:&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27077i62BE975DC58E6058/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I took a look at my csv file in a text file and found that each variable and value were in double quotation marks. Here is a short portion of the txt file of the dataset:&lt;/P&gt;&lt;P&gt;"player_id","last_name","first_name","season_id","conference","league_id","games_played","minutes","points","o_rebounds","d_rebounds","rebounds","assists","steals","blocks","turnovers","personal_fouls","fg_attempted","fg_made","ft_attempted","ft_made","three_attempted","three_made"&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1978","West","NBA","1","28","11",,,"8","3",,,,,"12","5","2","1",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1969","East","NBA","1","18","10",,,"11","4",,,,,"8","4","2","2",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1988","West","NBA","1","13","4",,,"3","0",,,,,"6","1","2","2",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1987","West","NBA","1","14","10",,,"4","0",,,,,"9","4","2","2",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1986","West","NBA","1","27","10",,,"8","3",,,,,"9","4","2","2",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1985","West","NBA","1","32","21",,,"7","2",,,,,"15","9","4","3",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1984","West","NBA","1","23","11",,,"6","1",,,,,"10","5","2","1",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1983","West","NBA","1","37","25",,,"13","2",,,,,"19","11","4","3",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1982","West","NBA","1","32","20",,,"6","5",,,,,"12","9","3","2",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1980","West","NBA","1","23","15",,,"6","4",,,,,"9","6","3","3",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1979","West","NBA","1","30","17",,,"16","9",,,,,"17","6","6","5",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1976","West","NBA","1","23","21",,,"4","2",,,,,"14","8","6","5",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1975","West","NBA","1","36","22",,,"5","3",,,,,"16","9","4","4",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1974","West","NBA","1","19","7",,,"10","3",,,,,"10","3","2","1",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1973","West","NBA","1","23","14",,,"8","6",,,,,"11","7","0","0",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1972","West","NBA","1","98",,,,,,,,,,,,,,,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1971","West","NBA","1","19","12",,,"7","2",,,,,"10","5","2","2",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1970","West","NBA","1","30","19",,,"14","1",,,,,"16","8","4","3",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1981","West","NBA","1","22","2","1","2","3","1","3","2","1","3","10","1","0","0","0","0"&lt;BR /&gt;"abdursh01","A-Rahim","Shareef","2001","East","NBA","1","21","9","1","5","6","0","0","0","0","2","4","4","0","0","1","1"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried various informat and format options, but get about the same as picture above.&amp;nbsp; Is there any way to remove all of the quotation marks while trying to read in the .csv file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 03:36:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-double-quotes-while-infile-with-a-csv-file/m-p/534711#M146767</guid>
      <dc:creator>wgonzalez</dc:creator>
      <dc:date>2019-02-12T03:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Removing double quotes while infile with a csv file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-double-quotes-while-infile-with-a-csv-file/m-p/534715#M146770</link>
      <description>&lt;P&gt;Replace&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;input ID $12. L_Name:$12. F_Name $12. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;with&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;input ID :$12. L_Name :$12. F_Name :$12.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 04:04:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-double-quotes-while-infile-with-a-csv-file/m-p/534715#M146770</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-02-12T04:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Removing double quotes while infile with a csv file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-double-quotes-while-infile-with-a-csv-file/m-p/534716#M146771</link>
      <description>&lt;P&gt;This is actually standard in a CSV, at least for text variables. I'm surprised the numerics are all in quotes but it can still be dealt with. The DSD option handles the quotes, you don't need do explicitly deal with it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should apply your informants ahead of the INPUT statement to get it to work correctly, rather than on the INPUT statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;informat ID L_Name F_Name $12.;

input ..... ;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Give that a shot first. If that doesn't work, you may want to read everything in as a character and then convert to numeric.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/261375"&gt;@wgonzalez&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I was tasked to find a data set for an assignment.&amp;nbsp; While trying to read in the csv, I wanted to take a look at it before I proceeded with my relatively simple assignment.&amp;nbsp; Here is the code that I first used:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data basketball;&lt;/P&gt;
&lt;P&gt;infile "C:\Users\wonha\Desktop\SMU Class Material\6308 SAS II and Databases\mens-professional-basketball\basketball_player_allstar.csv" dlm=","&lt;BR /&gt;firstobs=2 dsd;&lt;BR /&gt;&lt;BR /&gt;input ID $ L_Name $ F_Name $ Season $ Conference $ League $ Games Minutes Points Off_Rebounds Def_Rebounds Rebounds Assists Steals Blocks Turnovers&lt;BR /&gt;Fouls FG_Attempt FG_Made FT_Attempt FT_Made Threes_Attempt Threes_Made;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc print data=basketball (Firstobs=1 obs=5);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is what appears in the results viewer:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27076i6C6B994654D2C93E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I thought that I should then use an informat for the ID, first name, and last name variables, so I use the $12. option on each.&lt;/P&gt;
&lt;P&gt;data basketball;&lt;/P&gt;
&lt;P&gt;infile "C:\Users\wonha\Desktop\SMU Class Material\6308 SAS II and Databases\mens-professional-basketball\basketball_player_allstar.csv" dlm=","&lt;BR /&gt;firstobs=2 dsd;&lt;BR /&gt;&lt;BR /&gt;input ID $12. L_Name $12. F_Name $12. Season $ Conference $ League $ Games Minutes Points Off_Rebounds Def_Rebounds Rebounds Assists Steals Blocks Turnovers&lt;BR /&gt;Fouls FG_Attempt FG_Made FT_Attempt FT_Made Threes_Attempt Threes_Made;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc print data=basketball (Firstobs=1 obs=5);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which produced the second set of results:&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27077i62BE975DC58E6058/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I took a look at my csv file in a text file and found that each variable and value were in double quotation marks. Here is a short portion of the txt file of the dataset:&lt;/P&gt;
&lt;P&gt;"player_id","last_name","first_name","season_id","conference","league_id","games_played","minutes","points","o_rebounds","d_rebounds","rebounds","assists","steals","blocks","turnovers","personal_fouls","fg_attempted","fg_made","ft_attempted","ft_made","three_attempted","three_made"&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1978","West","NBA","1","28","11",,,"8","3",,,,,"12","5","2","1",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1969","East","NBA","1","18","10",,,"11","4",,,,,"8","4","2","2",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1988","West","NBA","1","13","4",,,"3","0",,,,,"6","1","2","2",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1987","West","NBA","1","14","10",,,"4","0",,,,,"9","4","2","2",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1986","West","NBA","1","27","10",,,"8","3",,,,,"9","4","2","2",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1985","West","NBA","1","32","21",,,"7","2",,,,,"15","9","4","3",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1984","West","NBA","1","23","11",,,"6","1",,,,,"10","5","2","1",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1983","West","NBA","1","37","25",,,"13","2",,,,,"19","11","4","3",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1982","West","NBA","1","32","20",,,"6","5",,,,,"12","9","3","2",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1980","West","NBA","1","23","15",,,"6","4",,,,,"9","6","3","3",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1979","West","NBA","1","30","17",,,"16","9",,,,,"17","6","6","5",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1976","West","NBA","1","23","21",,,"4","2",,,,,"14","8","6","5",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1975","West","NBA","1","36","22",,,"5","3",,,,,"16","9","4","4",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1974","West","NBA","1","19","7",,,"10","3",,,,,"10","3","2","1",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1973","West","NBA","1","23","14",,,"8","6",,,,,"11","7","0","0",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1972","West","NBA","1","98",,,,,,,,,,,,,,,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1971","West","NBA","1","19","12",,,"7","2",,,,,"10","5","2","2",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1970","West","NBA","1","30","19",,,"14","1",,,,,"16","8","4","3",,&lt;BR /&gt;"abdulka01","Abdul-Jabbar","Kareem","1981","West","NBA","1","22","2","1","2","3","1","3","2","1","3","10","1","0","0","0","0"&lt;BR /&gt;"abdursh01","A-Rahim","Shareef","2001","East","NBA","1","21","9","1","5","6","0","0","0","0","2","4","4","0","0","1","1"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried various informat and format options, but get about the same as picture above.&amp;nbsp; Is there any way to remove all of the quotation marks while trying to read in the .csv file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 04:08:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-double-quotes-while-infile-with-a-csv-file/m-p/534716#M146771</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-12T04:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Removing double quotes while infile with a csv file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-double-quotes-while-infile-with-a-csv-file/m-p/534717#M146772</link>
      <description>&lt;P&gt;Two things.&lt;/P&gt;
&lt;P&gt;The DSD option on the INFILE statement&amp;nbsp; will automatically remove the optional quotes around values. It will also properly handle any null values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second when reading delimited data you need to use what SAS calls LIST mode input style instead of FORMATTED input style.&amp;nbsp; So either totally remove the informats from the INPUT statement (or add the colon modifier in front of the informat specifications).&amp;nbsp; If you slip into formatted input mode then you might accidentally read past&amp;nbsp; the delimiter and mess up the parsing of the input line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is usually best to define you variables before you use them (otherwise SAS will guess how to define them based on how you first use them).&amp;nbsp; For example you can just use a LENGTH statement to define the type and length of each variable. Numeric variables should be length 8 since SAS stores numbers using 8 byte floating point.&amp;nbsp; Make the character variables long enough for the maximum number of character you expect them to hold.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;infile "...." dlm="," firstobs=2 dsd truncover;

length ID $12 L_Name $12 F_Name $12 Season $12 Conference $12 League $12 
Games Minutes Points Off_Rebounds Def_Rebounds Rebounds Assists Steals Blocks 
Turnovers Fouls FG_Attempt FG_Made FT_Attempt FT_Made Threes_Attempt Threes_Made 8
;

input id -- Threes_Made ;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 04:34:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-double-quotes-while-infile-with-a-csv-file/m-p/534717#M146772</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-02-12T04:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Removing double quotes while infile with a csv file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-double-quotes-while-infile-with-a-csv-file/m-p/534953#M146842</link>
      <description>Thank you!</description>
      <pubDate>Tue, 12 Feb 2019 18:49:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-double-quotes-while-infile-with-a-csv-file/m-p/534953#M146842</guid>
      <dc:creator>wgonzalez</dc:creator>
      <dc:date>2019-02-12T18:49:12Z</dc:date>
    </item>
  </channel>
</rss>

