<?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 Placement in correct tab in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Placement-in-correct-tab/m-p/85570#M18371</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data loans(keep=loan_num log_code filter);&lt;/P&gt;&lt;P&gt;set loan1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the scenario for the log codes.&lt;/P&gt;&lt;P&gt;if the log code is&lt;/P&gt;&lt;P&gt;TLS only (log code) – Received tab &lt;/P&gt;&lt;P&gt;TLS and TCD (log codes) – Pending &lt;/P&gt;&lt;P&gt;TLS and TMOD (log codes) – Reset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is TLS can appear in all three scenarios, in scenarios 2 and 3, the second log code dictates the tab.&lt;/P&gt;&lt;P&gt;if log code = 'TLS' and log code not in ('TCD','TMOD') the filter = 'TLS';&lt;/P&gt;&lt;P&gt;if log code in('TLS','TCD)&lt;/P&gt;&lt;P&gt;I want the filter to populate with Received, Pending or Reset.&amp;nbsp; What complicates this is TLS can appear in all 3 scenarios.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 May 2013 14:35:07 GMT</pubDate>
    <dc:creator>omega1983</dc:creator>
    <dc:date>2013-05-24T14:35:07Z</dc:date>
    <item>
      <title>Placement in correct tab</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Placement-in-correct-tab/m-p/85570#M18371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data loans(keep=loan_num log_code filter);&lt;/P&gt;&lt;P&gt;set loan1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the scenario for the log codes.&lt;/P&gt;&lt;P&gt;if the log code is&lt;/P&gt;&lt;P&gt;TLS only (log code) – Received tab &lt;/P&gt;&lt;P&gt;TLS and TCD (log codes) – Pending &lt;/P&gt;&lt;P&gt;TLS and TMOD (log codes) – Reset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is TLS can appear in all three scenarios, in scenarios 2 and 3, the second log code dictates the tab.&lt;/P&gt;&lt;P&gt;if log code = 'TLS' and log code not in ('TCD','TMOD') the filter = 'TLS';&lt;/P&gt;&lt;P&gt;if log code in('TLS','TCD)&lt;/P&gt;&lt;P&gt;I want the filter to populate with Received, Pending or Reset.&amp;nbsp; What complicates this is TLS can appear in all 3 scenarios.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 14:35:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Placement-in-correct-tab/m-p/85570#M18371</guid>
      <dc:creator>omega1983</dc:creator>
      <dc:date>2013-05-24T14:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Placement in correct tab</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Placement-in-correct-tab/m-p/85571#M18372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are those actual data lines? If not actual, or at least the way it actually will appear in the data would be more helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If log code in ('TLS','TCD')&amp;nbsp; won't do what you want as this is true if the entire code is either of these values.&lt;/P&gt;&lt;P&gt;you may be looking for&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if findw(Log_code,'TLS')&amp;gt;0 and findw(Log_code,'TCD')&amp;gt;0 then filter='Pending';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 14:59:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Placement-in-correct-tab/m-p/85571#M18372</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-05-24T14:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Placement in correct tab</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Placement-in-correct-tab/m-p/85572#M18373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this data have key (or id) columns to group by?&lt;/P&gt;&lt;P&gt;I'm assuming when a group has the appropriate collection it belongs in one of the three tabs.&lt;/P&gt;&lt;P&gt;The design i would propose makes a join of 3 streams having just one type of data in each stream. But that approach needs a definition of the grouping.&lt;/P&gt;&lt;P&gt;With ordered data the 3 tabs could be written by a single data step. Proc sql wouln't need ordered data but can only write one tab at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;peterC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 May 2013 08:47:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Placement-in-correct-tab/m-p/85572#M18373</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2013-05-25T08:47:10Z</dc:date>
    </item>
  </channel>
</rss>

