<?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 question about time variable selection in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/question-about-time-variable-selection/m-p/359154#M64362</link>
    <description>&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Application number&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;O_DATE&lt;/TD&gt;&lt;TD&gt;Number&lt;/TD&gt;&lt;TD&gt;APPSTATUSDATE&lt;/TD&gt;&lt;TD&gt;APPLICATION_NUMBER&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15857&lt;/TD&gt;&lt;TD&gt;04May2016 0:00:00&lt;/TD&gt;&lt;TD&gt;1585766128&lt;/TD&gt;&lt;TD&gt;23Apr2016&lt;/TD&gt;&lt;TD&gt;15857&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;32344&lt;/TD&gt;&lt;TD&gt;02Nov2015 0:00:00&lt;/TD&gt;&lt;TD&gt;3234439493&lt;/TD&gt;&lt;TD&gt;31Oct2015&lt;/TD&gt;&lt;TD&gt;32344&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;61275&lt;/TD&gt;&lt;TD&gt;07Jan2016 0:00:00&lt;/TD&gt;&lt;TD&gt;6127522542&lt;/TD&gt;&lt;TD&gt;30Dec2015&lt;/TD&gt;&lt;TD&gt;61275&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;61378&lt;/TD&gt;&lt;TD&gt;04Dec2015 0:00:00&lt;/TD&gt;&lt;TD&gt;6137848422&lt;/TD&gt;&lt;TD&gt;27Nov2015&lt;/TD&gt;&lt;TD&gt;61378&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to using proc sql a left join to make the Application_num=Num where month(datepart( t1.O_DATE)= month(t2. APPSTATUSDATE) and year\(datepart( t1.O_DATE)= \(t2. APPSTATUSDATE)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the rows in the excel&amp;nbsp;above coule not match because they are not in the same month, how can I include them in my filter ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Tue, 16 May 2017 18:52:42 GMT</pubDate>
    <dc:creator>septemberbulb</dc:creator>
    <dc:date>2017-05-16T18:52:42Z</dc:date>
    <item>
      <title>question about time variable selection</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/question-about-time-variable-selection/m-p/359154#M64362</link>
      <description>&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Application number&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;O_DATE&lt;/TD&gt;&lt;TD&gt;Number&lt;/TD&gt;&lt;TD&gt;APPSTATUSDATE&lt;/TD&gt;&lt;TD&gt;APPLICATION_NUMBER&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15857&lt;/TD&gt;&lt;TD&gt;04May2016 0:00:00&lt;/TD&gt;&lt;TD&gt;1585766128&lt;/TD&gt;&lt;TD&gt;23Apr2016&lt;/TD&gt;&lt;TD&gt;15857&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;32344&lt;/TD&gt;&lt;TD&gt;02Nov2015 0:00:00&lt;/TD&gt;&lt;TD&gt;3234439493&lt;/TD&gt;&lt;TD&gt;31Oct2015&lt;/TD&gt;&lt;TD&gt;32344&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;61275&lt;/TD&gt;&lt;TD&gt;07Jan2016 0:00:00&lt;/TD&gt;&lt;TD&gt;6127522542&lt;/TD&gt;&lt;TD&gt;30Dec2015&lt;/TD&gt;&lt;TD&gt;61275&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;61378&lt;/TD&gt;&lt;TD&gt;04Dec2015 0:00:00&lt;/TD&gt;&lt;TD&gt;6137848422&lt;/TD&gt;&lt;TD&gt;27Nov2015&lt;/TD&gt;&lt;TD&gt;61378&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to using proc sql a left join to make the Application_num=Num where month(datepart( t1.O_DATE)= month(t2. APPSTATUSDATE) and year\(datepart( t1.O_DATE)= \(t2. APPSTATUSDATE)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the rows in the excel&amp;nbsp;above coule not match because they are not in the same month, how can I include them in my filter ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 18:52:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/question-about-time-variable-selection/m-p/359154#M64362</guid>
      <dc:creator>septemberbulb</dc:creator>
      <dc:date>2017-05-16T18:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: question about time variable selection</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/question-about-time-variable-selection/m-p/359159#M64364</link>
      <description>&lt;P&gt;I, for one, don't understand what you just said. Without expressing it in code criteria are you trying to incorporate to consider one record matching with another?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 19:09:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/question-about-time-variable-selection/m-p/359159#M64364</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-05-16T19:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: question about time variable selection</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/question-about-time-variable-selection/m-p/359168#M64365</link>
      <description>&lt;P&gt;If I understand you want to do something you have defined when the month and year match between your two variables O_date and AppStatusDate. But then you show values for those variables where the month and year do not match.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you provide and actual rule for how that match is supposed to take place?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, since you are apparently using TWO data sets then the structure of those sets is important. For instance which sets to the variables "Application number" (not a valid SAS name generally) and Number come from?&lt;/P&gt;
&lt;P&gt;It would be best to post 1) all of the code not that pseudocode with illegal syntax, 2) examples of records from each data set. &lt;STRONG&gt;Do not paste pictures or Excel copy &amp;amp; paste. &lt;/STRONG&gt;Data should be in form of a data step so that we can actually recreate useable data. Anything pasted from Excel requires us to guess about the actual variable type and name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 19:42:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/question-about-time-variable-selection/m-p/359168#M64365</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-05-16T19:42:33Z</dc:date>
    </item>
  </channel>
</rss>

