<?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: Fetching the holiday list as per the location in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Fetching-the-holiday-list-as-per-the-location/m-p/480574#M124215</link>
    <description>I don't see location mentioned anywhere...</description>
    <pubDate>Mon, 23 Jul 2018 18:19:59 GMT</pubDate>
    <dc:creator>tomrvincent</dc:creator>
    <dc:date>2018-07-23T18:19:59Z</dc:date>
    <item>
      <title>Fetching the holiday list as per the location</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fetching-the-holiday-list-as-per-the-location/m-p/478621#M123437</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code in which i have implemented most of the logic except&amp;nbsp;one thing .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one input data by name Demo.INPUT_2 which contains the date column by name "Initiated" and another location column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone suggest that how can i&amp;nbsp; use their combination directly in if then else statement in my program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically , i want to compare the date and location from my input data with the hard corded date and location in the below conditon&lt;/P&gt;&lt;P&gt;where i have added the &lt;STRONG&gt;/*Holiday List */&lt;/STRONG&gt; comment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA DEMO.INPUT_4;&lt;BR /&gt;SET DEMO.INPUT_2;&lt;BR /&gt;FR_DATE = DATEPART(INITIATED);&lt;BR /&gt;FR_TIME = TIMEPART(INITIATED);&lt;BR /&gt;FORMAT FR_TIME TIME8.2;&lt;BR /&gt;FORMAT FR_DATE DATE9.;&lt;/P&gt;&lt;P&gt;J = 0;&lt;/P&gt;&lt;P&gt;NEW_TIME = FR_DATE;&lt;/P&gt;&lt;P&gt;DO WHILE(J = 0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/*Holiday List */&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF PUT(NEW_TIME,DATE9.) IN&lt;BR /&gt;(&lt;BR /&gt;'01JAN2018'&lt;BR /&gt;,'15JAN2018'&lt;BR /&gt;,'26JAN2018'&lt;BR /&gt;,'12FEB2018'&lt;BR /&gt;,'02MAR2018'&lt;BR /&gt;,'30MAR2018'&lt;BR /&gt;,'30APR2018'&lt;BR /&gt;,'01MAY2018'&lt;BR /&gt;,'01JAN2018'&lt;BR /&gt;,'16JUN2018'&lt;BR /&gt;,'15AUG2018'&lt;BR /&gt;,'22AUG2018'&lt;BR /&gt;,'13SEP2018'&lt;BR /&gt;,'02OCT2018'&lt;BR /&gt;,'18OCT2018'&lt;BR /&gt;,'07NOV2018'&lt;BR /&gt;,'08NOV2018'&lt;BR /&gt;,'21NOV2018'&lt;BR /&gt;,'25DEC2018'&lt;BR /&gt;)&lt;BR /&gt;THEN NEW_TIME = INTNX('DAY',NEW_TIME,+1);&lt;BR /&gt;ELSE IF NEW_TIME = NWKDOM(1,7,MONTH(NEW_TIME),2018) THEN NEW_TIME=INTNX('DAY',NEW_TIME,+2);&lt;BR /&gt;ELSE IF NEW_TIME = NWKDOM(2,7,MONTH(NEW_TIME),2018) THEN NEW_TIME=INTNX('DAY',NEW_TIME,+2);&lt;BR /&gt;ELSE IF WEEKDAY(NEW_TIME)= 1 THEN NEW_TIME=INTNX('DAY',NEW_TIME,+1);&lt;BR /&gt;ELSE J = 1;&lt;BR /&gt;END;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;FORMAT NEW_TIME DATE9.;&lt;/P&gt;&lt;P&gt;APP = '10:00:00'T;&lt;BR /&gt;FORMAT APP TIME8.2;&lt;BR /&gt;FORMAT NEW_TIME_UPDATE DATETIME20.;&lt;BR /&gt;IF FR_TIME &amp;gt; '14:00:00'T AND NEW_TIME&lt;BR /&gt;THEN NEW_TIME_UPDATE = DHMS(NEW_TIME,0,0,APP);&lt;BR /&gt;ELSE NEW_TIME_UPDATE = INITIATED;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 12:10:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fetching-the-holiday-list-as-per-the-location/m-p/478621#M123437</guid>
      <dc:creator>VaibhavGhoghari</dc:creator>
      <dc:date>2018-07-17T12:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching the holiday list as per the location</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fetching-the-holiday-list-as-per-the-location/m-p/480574#M124215</link>
      <description>I don't see location mentioned anywhere...</description>
      <pubDate>Mon, 23 Jul 2018 18:19:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fetching-the-holiday-list-as-per-the-location/m-p/480574#M124215</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2018-07-23T18:19:59Z</dc:date>
    </item>
  </channel>
</rss>

