<?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: Reading comma Delimited File in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-comma-Delimited-File/m-p/27419#M5031</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you fire the third party vendor?&amp;nbsp; Or withhold payment until they produce the data in a usable format?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jan 2012 00:49:16 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2012-01-11T00:49:16Z</dc:date>
    <item>
      <title>Reading comma Delimited File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-comma-Delimited-File/m-p/27410#M5022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;I have a millions of records like this (comma separated records in text file)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;000000000123456789,30,ABC,2010-09-21,JANUDG_BUS2,BH1 MK1,4,201111,100,,78562561,Correct Char,987654321,1112131415,FEE,VEEFEE_BUS2,456109231,1011,LMS,1,0, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;000000000987654321,20,ZXF,2011-09-21,GNYUDG_BUS2,BY1 MK1,4,201111,100,,78562561,&lt;SPAN style="color: #ff0000;"&gt;In SAS Version 7 and beyond, SAS provides new date formats that allow &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="color: #ff0000;"&gt;you to specify the type of separator, or no separator when writing out date values&lt;/SPAN&gt;,987654321,1112131415,FEE,VEEFEE_BUS2,456109231,1011,LMS,1,0,&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;I am able to read the first record with out any problem I am able to read it with the help of DSD MISSOVER TRUNCOVER options.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;But if you look at the second record the highlighted character value coming with multiple commas with in the character variable, Can anyone help me to read these kind of record.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;Dhanasekaran R&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 18:06:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-comma-Delimited-File/m-p/27410#M5022</guid>
      <dc:creator>dhana</dc:creator>
      <dc:date>2012-01-10T18:06:46Z</dc:date>
    </item>
    <item>
      <title>Reading comma Delimited File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-comma-Delimited-File/m-p/27411#M5023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the string in question had been in quotes, I don't think you would have a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if it is just one field, you could read each record as a string, and then use the scan function to capture all of the other variables from left to right, and then from right to left, and the remainder as the field you are currently having a problem with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not going to write the code unless you confirm that the above scenario appears to be the case, and provide a full set of three to five such records for testing purposes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, if you can do it on your own, even better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 18:26:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-comma-Delimited-File/m-p/27411#M5023</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-01-10T18:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Reading comma Delimited File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-comma-Delimited-File/m-p/27412#M5024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;Hi Art,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;Thanks for your suggestion. I have attached a file with some sample records.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;Can you please help me to read this.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 18:44:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-comma-Delimited-File/m-p/27412#M5024</guid>
      <dc:creator>dhana</dc:creator>
      <dc:date>2012-01-10T18:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Reading comma Delimited File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-comma-Delimited-File/m-p/27413#M5025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following works with your sample records:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want (drop=_:);&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile "c:\art\stuff.txt" lrecl=500;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format var4 date9.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; var1=scan(_infile_,1,',');&lt;/P&gt;&lt;P&gt;&amp;nbsp; var2=input(scan(_infile_,2,','),12.);&lt;/P&gt;&lt;P&gt;&amp;nbsp; var3=scan(_infile_,3,',');&lt;/P&gt;&lt;P&gt;&amp;nbsp; var4=input(scan(_infile_,4,','),yymmdd10.);&lt;/P&gt;&lt;P&gt;&amp;nbsp; var5=scan(_infile_,5,',');&lt;/P&gt;&lt;P&gt;&amp;nbsp; var6=scan(_infile_,6,',');&lt;/P&gt;&lt;P&gt;&amp;nbsp; var7=input(scan(_infile_,7,','),12.);&lt;/P&gt;&lt;P&gt;&amp;nbsp; var8=input(scan(_infile_,8,','),12.);&lt;/P&gt;&lt;P&gt;&amp;nbsp; var9=input(scan(_infile_,9,','),12.);&lt;/P&gt;&lt;P&gt;&amp;nbsp; var10=input(scan(_infile_,10,','),12.);&lt;/P&gt;&lt;P&gt;&amp;nbsp; call scan(_infile_, 11, _sposition, _slength, ',');&lt;/P&gt;&lt;P&gt;&amp;nbsp; call scan(_infile_, -9, _eposition, _elength, ',');&lt;/P&gt;&lt;P&gt;&amp;nbsp; var11 = substrn(_infile_, _sposition, _eposition-_sposition-1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; var12=input(scan(_infile_,-9,','),12.);&lt;/P&gt;&lt;P&gt;&amp;nbsp; var13=input(scan(_infile_,-8,','),12.);&lt;/P&gt;&lt;P&gt;&amp;nbsp; var14=scan(_infile_,-7,',');&lt;/P&gt;&lt;P&gt;&amp;nbsp; var15=scan(_infile_,-6,',');&lt;/P&gt;&lt;P&gt;&amp;nbsp; var16=input(scan(_infile_,-5,','),12.);&lt;/P&gt;&lt;P&gt;&amp;nbsp; var17=input(scan(_infile_,-4,','),12.);&lt;/P&gt;&lt;P&gt;&amp;nbsp; var18=scan(_infile_,-3,',');&lt;/P&gt;&lt;P&gt;&amp;nbsp; var19=input(scan(_infile_,-2,','),12.);&lt;/P&gt;&lt;P&gt;&amp;nbsp; var20=input(scan(_infile_,-1,','),12.);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 19:27:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-comma-Delimited-File/m-p/27413#M5025</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-01-10T19:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Reading comma Delimited File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-comma-Delimited-File/m-p/27414#M5026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;Art this is really excellent...! I didn't think in this way...! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;Thanks a lot ...! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;Dhana&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 19:32:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-comma-Delimited-File/m-p/27414#M5026</guid>
      <dc:creator>dhana</dc:creator>
      <dc:date>2012-01-10T19:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Reading comma Delimited File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-comma-Delimited-File/m-p/27415#M5027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dhana,&amp;nbsp; I've been known to think in unusual ways &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&amp;nbsp; I'm sure that the code could be optimized, but you get the general idea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 19:35:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-comma-Delimited-File/m-p/27415#M5027</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-01-10T19:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Reading comma Delimited File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-comma-Delimited-File/m-p/27416#M5028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Dhana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about having the file regenerated with some other character as the delimiter, say a tab or obscure character such as '|' or '~'?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A well behaved file generating application should not use characters which are embedded in data strings as delimiters.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this is a large file, but if this issue will be repeated in the future, it would be nice to have the data in a format that any general data application could read easily and correctly.&amp;nbsp; To see how this is a problem for other applications, try reading your 5 line example file into Excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will new files be generated in the future or is it easy to get this file re-generated?&amp;nbsp; If so I strongly suggest fixing at the file generation level rather than as you read into SAS.&amp;nbsp; Even if this is a one of kind problem, it may be easier to fix and may require fewer computational resources than the relatively complicate scan solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Art's solution will work if it is only the eleventh field which contains embedded commas,&amp;nbsp; but if embedded commas are encountered in other fields those will need to be fixed also.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 19:55:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-comma-Delimited-File/m-p/27416#M5028</guid>
      <dc:creator>LarryWorley</dc:creator>
      <dc:date>2012-01-10T19:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Reading comma Delimited File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-comma-Delimited-File/m-p/27417#M5029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;You are exactly correct Larry. Thanks for your valuable input.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;But unfortunately the file comes from a third party vendor, which we dont have control on them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;Dhana&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 19:59:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-comma-Delimited-File/m-p/27417#M5029</guid>
      <dc:creator>dhana</dc:creator>
      <dc:date>2012-01-10T19:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Reading comma Delimited File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-comma-Delimited-File/m-p/27418#M5030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Art,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I borrowed your code.&amp;nbsp; Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; want (drop=i j);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;infile&lt;/SPAN&gt; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: purple; font-size: 10pt;"&gt;"\\your location\samplerecord.txt"&lt;/SPAN&gt; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;lrecl&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;500&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;array&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; _v(&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;10&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;) $ &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;80&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; var1-var10;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;do&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; i=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;to&lt;/SPAN&gt; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;10&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _v{i}=scan(_infile_,i,&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: purple; font-size: 10pt;"&gt;','&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;call&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; scan(_infile_, &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;11&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;, _sposition, _slength, &lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: purple; font-size: 10pt;"&gt;','&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;call&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; scan(_infile_, -&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;9&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;, _eposition, _elength, &lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: purple; font-size: 10pt;"&gt;','&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;&amp;nbsp; var11 = substrn(_infile_, _sposition, _eposition-_sposition-&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;array&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; _x(&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;12&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;:&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;20&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;) $ &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;80&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; var12-var20;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;do&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; i=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;12&lt;/STRONG&gt; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;to&lt;/SPAN&gt; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;20&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;&amp;nbsp; j=i-&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;21&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;&amp;nbsp; _x(i)=scan(_infile_,j,&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: purple; font-size: 10pt;"&gt;','&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linlin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 21:21:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-comma-Delimited-File/m-p/27418#M5030</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-01-10T21:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Reading comma Delimited File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-comma-Delimited-File/m-p/27419#M5031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you fire the third party vendor?&amp;nbsp; Or withhold payment until they produce the data in a usable format?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 00:49:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-comma-Delimited-File/m-p/27419#M5031</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-01-11T00:49:16Z</dc:date>
    </item>
  </channel>
</rss>

