<?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: URGENT : Import text based report missing several value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/URGENT-Import-text-based-report-missing-several-value/m-p/177285#M302372</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh how stupid of me, sorry PG, yes now I understand that KSharp look for any date contain in text that have 2 digit with slash. Thanks man, youre all awesome. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Aug 2014 02:37:37 GMT</pubDate>
    <dc:creator>responcity</dc:creator>
    <dc:date>2014-08-28T02:37:37Z</dc:date>
    <item>
      <title>URGENT : Import text based report missing several value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/URGENT-Import-text-based-report-missing-several-value/m-p/177276#M302363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tryed to import some text based report as attach, my script to import is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data store&amp;nbsp; (drop=Key0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; infile "C:\Users\Administrator\Desktop\YULIA\sample.txt" delimiter = ' ' MISSOVER DSD LRECL=10000 pad;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; retain account_number date time amount type response thestore;&lt;/P&gt;&lt;P&gt;/*input key1 $2-3 @;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if key1 in ('3','4','5')then input&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; account_number2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $19.;*/&lt;/P&gt;&lt;P&gt;input &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; account_number&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $19.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @22&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ddmmyy8.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @31&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @36&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; amount&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $15.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @53&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $8.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @62&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; response&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $9.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;input key0 $52-59 @;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if key0='THESTORE' then input&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @61&amp;nbsp;&amp;nbsp;&amp;nbsp; thestore&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $35.;&lt;/P&gt;&lt;P&gt;format date date9.;&lt;/P&gt;&lt;P&gt;if date ne .;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my problem is the output missing some observation like below :&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="116" style="width: 587px;" summary="Page Layout"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" width="136"&gt;account_number&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="55"&gt;date&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="36"&gt;time&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="55"&gt;amount&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="48"&gt;type&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="64"&gt;response&lt;/TD&gt;&lt;TD class="xl68" style="border-left: none;" width="193"&gt;thestore&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;" width="136"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="55"&gt;8-Jul-85&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;" width="36"&gt;1210&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="55"&gt;999,800&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;" width="48"&gt;RETAIL&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;" width="64"&gt;MORE&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;" width="193"&gt;WALLMART MMM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;" width="136"&gt;0000-8888-9999-7990&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="55"&gt;8-Jul-85&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;" width="36"&gt;1210&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="55"&gt;790,000&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;" width="48"&gt;RETAIL&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;" width="64"&gt;MORE&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;" width="193"&gt;PHILLIPS MMM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl71" height="21" style="border-top: none;" width="136"&gt;0000-8888-3333-7853&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border-top: none; border-left: none;" width="55"&gt;8-Jul-85&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;" width="36"&gt;1240&lt;/TD&gt;&lt;TD align="right" class="xl74" style="border-top: none; border-left: none;" width="55"&gt;969,955&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;" width="48"&gt;RETAIL&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;" width="64"&gt;MORE&lt;/TD&gt;&lt;TD class="xl75" style="border-top: none; border-left: none;" width="193"&gt;WE HAVE ALL PRODUCT MMM&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the output should be like below :&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 626px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" width="136"&gt;account_number&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="55"&gt;date&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="36"&gt;time&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="55"&gt;amount&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="48"&gt;type&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="64"&gt;response&lt;/TD&gt;&lt;TD class="xl75" style="border-left: none;" width="232"&gt;thestore&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="border-top: none;" width="136"&gt;0000-8888-9999-8896&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="55"&gt;8-Jul-85&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;" width="36"&gt;1210&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="55"&gt;590,000&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;" width="48"&gt;RETAIL&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;" width="64"&gt;MORE&lt;/TD&gt;&lt;TD class="xl76" style="border-top: none; border-left: none;"&gt;TIMEZONE&amp;nbsp;&amp;nbsp;&amp;nbsp; MMM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="border-top: none;" width="136"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="55"&gt;8-Jul-85&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;" width="36"&gt;1210&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="55"&gt;999,800&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;" width="48"&gt;RETAIL&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;" width="64"&gt;MORE&lt;/TD&gt;&lt;TD class="xl76" style="border-top: none; border-left: none;"&gt;WALLMART MMM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="border-top: none;" width="136"&gt;0000-8888-9999-7990&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="55"&gt;8-Jul-85&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;" width="36"&gt;1210&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="55"&gt;790,000&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;" width="48"&gt;RETAIL&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;" width="64"&gt;MORE&lt;/TD&gt;&lt;TD class="xl76" style="border-top: none; border-left: none;"&gt;PHILLIPS MMM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="border-top: none;" width="136"&gt;0000-8888-3333-0697&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="55"&gt;8-Jul-85&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;" width="36"&gt;1230&lt;/TD&gt;&lt;TD align="right" class="xl74" style="border-top: none; border-left: none;" width="55"&gt;57,000&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;" width="48"&gt;RETAIL&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;" width="64"&gt;MORE&lt;/TD&gt;&lt;TD class="xl77" style="border-top: none; border-left: none;"&gt;YOUR STORE AVAILABLE MMM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="21" style="border-top: none;" width="136"&gt;0000-8888-3333-7853&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="55"&gt;8-Jul-85&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;" width="36"&gt;1240&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border-left: none;" width="55"&gt;969,955&lt;/TD&gt;&lt;TD class="xl71" style="border-left: none;" width="48"&gt;RETAIL&lt;/TD&gt;&lt;TD class="xl71" style="border-left: none;" width="64"&gt;MORE&lt;/TD&gt;&lt;TD class="xl78" style="border-left: none;"&gt;WE HAVE ALL PRODUCT MMM&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have anyone any idea whats wrong with my code that causing missing some observation? &lt;/P&gt;&lt;P&gt;thanks before.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 12:26:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/URGENT-Import-text-based-report-missing-several-value/m-p/177276#M302363</guid>
      <dc:creator>responcity</dc:creator>
      <dc:date>2014-08-27T12:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT : Import text based report missing several value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/URGENT-Import-text-based-report-missing-several-value/m-p/177277#M302364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like you are getting a lot of bits in the dataset which you are dropping with the if date ne ..&amp;nbsp; Have a look without that line in and you will see that the data doesn't make much sense.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/7231_Capture.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;So you can see, in the above, account_number is read in from the file as blank in row 2, this value is retained for the next row which has a date, and thus comes out but with missing as account number. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From my side, I would say this "report" will take a fair bit of working to get into any readable manner.&amp;nbsp; It would be easier if you could get the source document.&amp;nbsp; Alternatively if that is not possible then read each line in as $2000.&amp;nbsp; Then post process it with further datasteps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 12:41:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/URGENT-Import-text-based-report-missing-several-value/m-p/177277#M302364</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-08-27T12:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT : Import text based report missing several value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/URGENT-Import-text-based-report-missing-several-value/m-p/177278#M302365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for reply, I use &lt;STRONG&gt;date ne .&lt;/STRONG&gt; to cleansing unnecessary data, because all transaction have date value, my problem is why account number 0000-8888-9999-8896 &amp;amp; 0000-8888-3333-0697 is missing from my dataset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 12:47:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/URGENT-Import-text-based-report-missing-several-value/m-p/177278#M302365</guid>
      <dc:creator>responcity</dc:creator>
      <dc:date>2014-08-27T12:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT : Import text based report missing several value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/URGENT-Import-text-based-report-missing-several-value/m-p/177279#M302366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK . Assuming date would always be non-missing .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;data want;
 infile 'c:\temp\sample.txt' ;
 input;
 length&amp;nbsp; account_number&amp;nbsp; date time amount type response $ 100;
 retain&amp;nbsp; account_number&amp;nbsp; date time amount type response ;
 if prxmatch('/\d\d\/\d\d\/\d\d/o',_infile_) then do;
&amp;nbsp;&amp;nbsp; account_number=substr(_infile_,2,19);
&amp;nbsp;&amp;nbsp; date=left(substr(_infile_,22,8));
&amp;nbsp;&amp;nbsp; time=left(substr(_infile_,31,4));
&amp;nbsp;&amp;nbsp; amount=left(substr(_infile_,36,15));
&amp;nbsp;&amp;nbsp; type=left(substr(_infile_,51,10));
&amp;nbsp;&amp;nbsp; response=left(substr(_infile_,61,9));&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
 end;
 else if prxmatch('/THESTORE:/io',_infile_) then do;
&amp;nbsp;&amp;nbsp; thestore=left(compbl(scan(_infile_,-1,':'))); output;
 end;

run;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 13:05:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/URGENT-Import-text-based-report-missing-several-value/m-p/177279#M302366</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-08-27T13:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT : Import text based report missing several value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/URGENT-Import-text-based-report-missing-several-value/m-p/177280#M302367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Per my mail, when you look at what is imported the account number is missing for the first row where date is not missing, hence there is nothing to put in that variable, or retain for next records.&amp;nbsp; Hence why I suggest to read in all the data as long lengths, and then post-process the information to separate out the sections.&amp;nbsp; Ksharp has given a good example of the post-processing with perl regular expressions above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 13:14:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/URGENT-Import-text-based-report-missing-several-value/m-p/177280#M302367</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-08-27T13:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT : Import text based report missing several value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/URGENT-Import-text-based-report-missing-several-value/m-p/177281#M302368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;work like a charm!! amazing, thanks KSharp..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 01:22:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/URGENT-Import-text-based-report-missing-several-value/m-p/177281#M302368</guid>
      <dc:creator>responcity</dc:creator>
      <dc:date>2014-08-28T01:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT : Import text based report missing several value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/URGENT-Import-text-based-report-missing-several-value/m-p/177282#M302369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ksharp, can you elaborate more what "/\d\d\/\d\d\/\d\d/o" is stand for? thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 01:27:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/URGENT-Import-text-based-report-missing-several-value/m-p/177282#M302369</guid>
      <dc:creator>responcity</dc:creator>
      <dc:date>2014-08-28T01:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT : Import text based report missing several value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/URGENT-Import-text-based-report-missing-several-value/m-p/177283#M302370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt; "/\d\d\/\d\d\/\d\d/o" &lt;/SPAN&gt;is a pattern matching string describing what you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"/.../o" frames the pattern and instruct PRXMATCH to compile the pattern only once, instead of every time the function is called. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;\d matches a single digit&lt;/P&gt;&lt;P&gt;\/ matches s slash&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the pattern reads &lt;EM&gt;Look for two digits followed by a slash, followed by two digits, followed by a slash, followed by two digits&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 01:59:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/URGENT-Import-text-based-report-missing-several-value/m-p/177283#M302370</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-08-28T01:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT : Import text based report missing several value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/URGENT-Import-text-based-report-missing-several-value/m-p/177284#M302371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer PG, one more question, so the perl expressions is match &lt;EM&gt;two digits followed by a slash, followed by two digits, followed by a slash, followed by two digits,&lt;/EM&gt; in my case, how come perl expression recognized blank account number for second observation like result below?&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border: 0px solid black;" width="136"&gt;account_number&lt;/TD&gt;&lt;TD class="xl67" style="border: 0px solid black; border-left: none;" width="55"&gt;date&lt;/TD&gt;&lt;TD class="xl67" style="border: 0px solid black; border-left: none;" width="36"&gt;time&lt;/TD&gt;&lt;TD class="xl67" style="border: 0px solid black; border-left: none;" width="55"&gt;amount&lt;/TD&gt;&lt;TD class="xl67" style="border: 0px solid black; border-left: none;" width="48"&gt;type&lt;/TD&gt;&lt;TD class="xl67" style="border: 0px solid black; border-left: none;" width="64"&gt;response&lt;/TD&gt;&lt;TD class="xl75" style="border: 0px solid black; border-left: none;" width="232"&gt;thestore&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="border: 0px solid black; border-top: none;" width="136"&gt;0000-8888-9999-8896&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border: 0px solid black; border-left: none; border-top: none;" width="55"&gt;8-Jul-85&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border: 0px solid black; border-left: none; border-top: none;" width="36"&gt;1210&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;" width="55"&gt;590,000&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black; border-left: none; border-top: none;" width="48"&gt;RETAIL&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black; border-left: none; border-top: none;" width="64"&gt;MORE&lt;/TD&gt;&lt;TD class="xl76" style="border: 0px solid black; border-left: none; border-top: none;"&gt;TIMEZONE&amp;nbsp;&amp;nbsp;&amp;nbsp; MMM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="border: 0px solid black; border-top: none;" width="136"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border: 0px solid black; border-left: none; border-top: none;" width="55"&gt;&lt;STRONG&gt;8-Jul-85&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border: 0px solid black; border-left: none; border-top: none;" width="36"&gt;&lt;STRONG&gt;1210&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;" width="55"&gt;&lt;STRONG&gt;999,800&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black; border-left: none; border-top: none;" width="48"&gt;&lt;STRONG&gt;RETAIL&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black; border-left: none; border-top: none;" width="64"&gt;&lt;STRONG&gt;MORE&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl76" style="border: 0px solid black; border-left: none; border-top: none;"&gt;&lt;STRONG&gt;WALLMART MMM&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Thanks PG.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 02:24:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/URGENT-Import-text-based-report-missing-several-value/m-p/177284#M302371</guid>
      <dc:creator>responcity</dc:creator>
      <dc:date>2014-08-28T02:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT : Import text based report missing several value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/URGENT-Import-text-based-report-missing-several-value/m-p/177285#M302372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh how stupid of me, sorry PG, yes now I understand that KSharp look for any date contain in text that have 2 digit with slash. Thanks man, youre all awesome. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 02:37:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/URGENT-Import-text-based-report-missing-several-value/m-p/177285#M302372</guid>
      <dc:creator>responcity</dc:creator>
      <dc:date>2014-08-28T02:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT : Import text based report missing several value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/URGENT-Import-text-based-report-missing-several-value/m-p/177286#M302373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The pattern is not aimed at the account number, it is looking for a date. It matches 08/07/85. - PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 02:38:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/URGENT-Import-text-based-report-missing-several-value/m-p/177286#M302373</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-08-28T02:38:00Z</dc:date>
    </item>
  </channel>
</rss>

