<?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 intck function not giving a blank in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/intck-function-not-giving-a-blank/m-p/319407#M70144</link>
    <description>&lt;P&gt;Hi All&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So this is a bit of a wierd occurance. I am used to the intck function returning a missing value if one of the two dates are missing. But in an excersice I'm busy with, it returns a zero. I can't understand why. I moked up a little dummy data set as well to test, and then it returns a missing value.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; TAT = intck('minute', FIRST_APP_SUBMISSION_DATE, First_Action_Datetime);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;IMG title="Capture.PNG" alt="Capture.PNG" src="https://communities.sas.com/t5/image/serverpage/image-id/6394i41C31C9A6E0191A4/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;both variables are datetime22.3&lt;/P&gt;
&lt;P&gt;I'd really appreciate some insight.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;GD&lt;/P&gt;</description>
    <pubDate>Fri, 16 Dec 2016 00:04:09 GMT</pubDate>
    <dc:creator>GenDemo</dc:creator>
    <dc:date>2016-12-16T00:04:09Z</dc:date>
    <item>
      <title>intck function not giving a blank</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intck-function-not-giving-a-blank/m-p/319407#M70144</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So this is a bit of a wierd occurance. I am used to the intck function returning a missing value if one of the two dates are missing. But in an excersice I'm busy with, it returns a zero. I can't understand why. I moked up a little dummy data set as well to test, and then it returns a missing value.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; TAT = intck('minute', FIRST_APP_SUBMISSION_DATE, First_Action_Datetime);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;IMG title="Capture.PNG" alt="Capture.PNG" src="https://communities.sas.com/t5/image/serverpage/image-id/6394i41C31C9A6E0191A4/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;both variables are datetime22.3&lt;/P&gt;
&lt;P&gt;I'd really appreciate some insight.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;GD&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2016 00:04:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intck-function-not-giving-a-blank/m-p/319407#M70144</guid>
      <dc:creator>GenDemo</dc:creator>
      <dc:date>2016-12-16T00:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: intck function not giving a blank</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intck-function-not-giving-a-blank/m-p/319415#M70146</link>
      <description>&lt;P&gt;Do you have a RETAIN on TAT ? or maybe some other statement that damage TAT value ?&lt;/P&gt;
&lt;P&gt;Can you post your full code or log ?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2016 00:44:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intck-function-not-giving-a-blank/m-p/319415#M70146</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-12-16T00:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: intck function not giving a blank</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intck-function-not-giving-a-blank/m-p/319439#M70161</link>
      <description>&lt;PRE&gt;

options missing='.' ;


&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Dec 2016 03:32:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intck-function-not-giving-a-blank/m-p/319439#M70161</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-12-16T03:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: intck function not giving a blank</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intck-function-not-giving-a-blank/m-p/319462#M70170</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Unfortunately, I can't really post the code due to risk of sensitive&lt;BR /&gt;information or IP. No I don't have a retain function on TAT. I'll check&lt;BR /&gt;again when I am back in the office on Monday.&lt;BR /&gt;&lt;BR /&gt;GD&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Fri, 16 Dec 2016 07:36:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intck-function-not-giving-a-blank/m-p/319462#M70170</guid>
      <dc:creator>GenDemo</dc:creator>
      <dc:date>2016-12-16T07:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: intck function not giving a blank</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intck-function-not-giving-a-blank/m-p/319481#M70180</link>
      <description>&lt;P&gt;You should have a&lt;/P&gt;
&lt;PRE&gt;NOTE: Missing values were generated as a result of performing an operation on missing values.
      Each place is given by: (Number of times) at (Line):(Column).
&lt;/PRE&gt;
&lt;P&gt;in your log that points to the intck call. If not, then the missing value was somehow "calculated away" before that.&lt;/P&gt;
&lt;P&gt;If the NOTE is there, then you might have options missing set to a non-default value, or TAT was manipulated after the function call. This could even happen by TAT being present in a dataset where you don't expect it.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2016 09:21:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intck-function-not-giving-a-blank/m-p/319481#M70180</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-12-16T09:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: intck function not giving a blank</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intck-function-not-giving-a-blank/m-p/322058#M71205</link>
      <description>&lt;P&gt;*facepalm* sorry guys....&lt;/P&gt;
&lt;P&gt;I did something idiotic....just after the calculation I reset the TAT variable to 0 if its missing...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt; TAT = intck(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'minute'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;, FIRST_APP_SUBMISSION_DATE, First_Action_Datetime);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt; ind_2pm = (timepart(FIRST_APP_SUBMISSION_DATE) &amp;lt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;'14:00:00't&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; TAT &amp;lt; &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;then&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;do&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;neg_TAT = TAT;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt; TAT = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;end&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thnx again...&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 03:56:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intck-function-not-giving-a-blank/m-p/322058#M71205</guid>
      <dc:creator>GenDemo</dc:creator>
      <dc:date>2017-01-03T03:56:48Z</dc:date>
    </item>
  </channel>
</rss>

