<?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 manage this type of file? Please Help. Many Thanks in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-manage-this-type-of-file-Please-Help-Many-Thanks/m-p/120426#M24750</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;How about this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set your_data;&lt;/P&gt;&lt;P&gt;&amp;nbsp; retain temp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; if accnt_num ne . then temp = accnt_num;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if accnt_num =. then accnt_num = temp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anca.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Apr 2013 13:57:12 GMT</pubDate>
    <dc:creator>AncaTilea</dc:creator>
    <dc:date>2013-04-25T13:57:12Z</dc:date>
    <item>
      <title>How to manage this type of file? Please Help. Many Thanks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-manage-this-type-of-file-Please-Help-Many-Thanks/m-p/120425#M24749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to match the file attached to anothe file on account_number. This file contains a column called 'Account Number' and another column called 'Order delivery date. But the account number is only populated for the first order. For example if a customer has made 3 orders, the first account number will be populated but the second and third row is missing for account number but it should be the same account number. (We should have duplicates instead of missing).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have received this file in this format and unfortunately I can't do it manually, It will take ages. I would like to match this file to another file to get the 'Order delivery date, but I will have to sort on account number but I wouldn't know which account number to associate to the missing values. I am not sure if you can see the file attached. If not, please let me know because I am having problems with attachement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; WIDTH: 100%; BORDER-TOP: #000000 1px solid; BORDER-RIGHT: #000000 1px solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;Account Number&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;Order Delivery date&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;100000001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01/01/2012&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;I should Have here 100000001 instead of missing&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;05/01/2012&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;I should Have here 100000001 instead of missing&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10/01/2012&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;10000002&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01/01/2012&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;10000003&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20/01/2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;10000004&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15/02/2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;I should Have here 100000004 instead of missing&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;18/02/2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;I should Have here 100000004 instead of missing&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20/02/2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;10000005&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15/04/2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;I should Have here 100000005 instead of missing&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;18/04/2013&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 13:40:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-manage-this-type-of-file-Please-Help-Many-Thanks/m-p/120425#M24749</guid>
      <dc:creator>Question</dc:creator>
      <dc:date>2013-04-25T13:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to manage this type of file? Please Help. Many Thanks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-manage-this-type-of-file-Please-Help-Many-Thanks/m-p/120426#M24750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;How about this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set your_data;&lt;/P&gt;&lt;P&gt;&amp;nbsp; retain temp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; if accnt_num ne . then temp = accnt_num;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if accnt_num =. then accnt_num = temp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anca.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 13:57:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-manage-this-type-of-file-Please-Help-Many-Thanks/m-p/120426#M24750</guid>
      <dc:creator>AncaTilea</dc:creator>
      <dc:date>2013-04-25T13:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to manage this type of file? Please Help. Many Thanks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-manage-this-type-of-file-Please-Help-Many-Thanks/m-p/120427#M24751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You Very Much...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 14:30:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-manage-this-type-of-file-Please-Help-Many-Thanks/m-p/120427#M24751</guid>
      <dc:creator>Question</dc:creator>
      <dc:date>2013-04-25T14:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to manage this type of file? Please Help. Many Thanks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-manage-this-type-of-file-Please-Help-Many-Thanks/m-p/120428#M24752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A variation on the above solution which does not use IF statements anymore:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data WANT (Drop = TEMP);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set YOUR_DATA;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Retain TEMP;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TEMP = Coalesce (ACCNT_NUM, TEMP);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACCNT_NUM = TEMP;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: If the ACCNT_NUM, though the name sugests otherwise, is a CHARACTER variable, you should replace the &lt;STRONG&gt;Coalesce&lt;/STRONG&gt; woth a &lt;STRONG&gt;CoalesceC&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 06:52:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-manage-this-type-of-file-Please-Help-Many-Thanks/m-p/120428#M24752</guid>
      <dc:creator>Aad</dc:creator>
      <dc:date>2013-04-26T06:52:26Z</dc:date>
    </item>
  </channel>
</rss>

