<?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: Importing coma delimeted text in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Importing-coma-delimeted-text/m-p/492593#M129470</link>
    <description>&lt;P&gt;thank you, but any other way except this.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Sep 2018 11:05:08 GMT</pubDate>
    <dc:creator>sg_kr</dc:creator>
    <dc:date>2018-09-05T11:05:08Z</dc:date>
    <item>
      <title>Importing coma delimeted text</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-coma-delimeted-text/m-p/492588#M129467</link>
      <description>&lt;P&gt;Hi &amp;lt;&lt;/P&gt;&lt;P&gt;i have 3 columns like below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; age&amp;nbsp; sex&lt;/P&gt;&lt;P&gt;kalyan,reddy,27,M&lt;/P&gt;&lt;P&gt;Goutham,reddy,28,M&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to import the name kalyan,reddy &amp;amp; goutham,reddy under column Name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 10:58:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-coma-delimeted-text/m-p/492588#M129467</guid>
      <dc:creator>sg_kr</dc:creator>
      <dc:date>2018-09-05T10:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Importing coma delimeted text</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-coma-delimeted-text/m-p/492589#M129468</link>
      <description>&lt;P&gt;Import as two variables, then use a cat-function to create the required value in a new variable.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 11:01:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-coma-delimeted-text/m-p/492589#M129468</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-09-05T11:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Importing coma delimeted text</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-coma-delimeted-text/m-p/492593#M129470</link>
      <description>&lt;P&gt;thank you, but any other way except this.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 11:05:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-coma-delimeted-text/m-p/492593#M129470</guid>
      <dc:creator>sg_kr</dc:creator>
      <dc:date>2018-09-05T11:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Importing coma delimeted text</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-coma-delimeted-text/m-p/492594#M129471</link>
      <description>&lt;P&gt;&amp;nbsp;You can use infile and&amp;nbsp;dsd options. But your name variable sould be in quote marks.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
infile datalines dsd dlm=",";
input Name :$15. age sex $;
datalines;
'kalyan,reddy',27,M
'Goutham,reddy',28,M
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Sep 2018 11:05:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-coma-delimeted-text/m-p/492594#M129471</guid>
      <dc:creator>muratatik</dc:creator>
      <dc:date>2018-09-05T11:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Importing coma delimeted text</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-coma-delimeted-text/m-p/492595#M129472</link>
      <description>Thanks for your reply.&lt;BR /&gt;but the data is to be import from a sheet and now enclosed in " ".</description>
      <pubDate>Wed, 05 Sep 2018 11:09:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-coma-delimeted-text/m-p/492595#M129472</guid>
      <dc:creator>sg_kr</dc:creator>
      <dc:date>2018-09-05T11:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Importing coma delimeted text</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-coma-delimeted-text/m-p/492601#M129477</link>
      <description>&lt;P&gt;The import program needs to have a logical method of reading the data.&amp;nbsp; It does this by having a delimiter.&amp;nbsp; In your case the delimiter is used within the data, hence you have the choices:&lt;/P&gt;
&lt;P&gt;enlcose the data which has the delimiter within quotes&lt;/P&gt;
&lt;P&gt;change the delimier to something which does not appear in the data&lt;/P&gt;
&lt;P&gt;import the data as is and post process the data&lt;/P&gt;
&lt;P&gt;There is no other logical way of identifying data which may or may not be part of the same variable.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 11:18:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-coma-delimeted-text/m-p/492601#M129477</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-09-05T11:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Importing coma delimeted text</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-coma-delimeted-text/m-p/492610#M129479</link>
      <description>&lt;P&gt;Wrap up the input line from the back end:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
input;
length
  name $50
  age 8
  sex $1
;
nwords = countw(_infile_,',');
sex = scan(_infile_,-1,',');
age = input(scan(_infile_,-2,','),best.);
do i = 1 to nwords - 2;
  name = catx(',',name,scan(_infile_,i,','));
end;
drop i nwords;
cards;
kalyan,reddy,27,M
Goutham,reddy,28,M
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Sep 2018 12:06:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-coma-delimeted-text/m-p/492610#M129479</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-09-05T12:06:00Z</dc:date>
    </item>
  </channel>
</rss>

