<?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: Question regarding &amp;quot;intck&amp;quot; in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Question-regarding-quot-intck-quot/m-p/74789#M21713</link>
    <description>Of course, the string is not numeric, 8 digits.  It is a date string, so your INFORMAT must match the input data format/type being processed.&lt;BR /&gt;
&lt;BR /&gt;
Recommended SAS DOC reading - link below:&lt;BR /&gt;
&lt;BR /&gt;
Working with Dates in the SAS System&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/a001304321.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/a001304321.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
The SAS support website  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  provides both SAS product documentation and supplemental technical papers and code samples on this and other topics.  Try the SEARCH option at the initial web page or consider using a Google advanced search argument, as shown below:&lt;BR /&gt;
&lt;BR /&gt;
convert sas date variables site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Thu, 19 Feb 2009 16:52:46 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-02-19T16:52:46Z</dc:date>
    <item>
      <title>Question regarding "intck"</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Question-regarding-quot-intck-quot/m-p/74786#M21710</link>
      <description>In my SAS dataset, there are 2 columns "Start_date" and "End_date", and in  ($8.0)  format, for example, "22/06/07", which is day, month and year respectively.  I want to count the number of days between 2 dates for every record in these 2 columns. So I use "Interval = intck('day', End_date, start_date), and it keeps giving me errors in the log, showing for example " Invalid numeric data, start_date =' 22/06/07' ". &lt;BR /&gt;
&lt;BR /&gt;
Must the End_date and Start_Date in the "intck" function be in certain format to get the number of days? If so, how can I convert them?</description>
      <pubDate>Thu, 19 Feb 2009 16:18:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Question-regarding-quot-intck-quot/m-p/74786#M21710</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-02-19T16:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Question regarding "intck"</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Question-regarding-quot-intck-quot/m-p/74787#M21711</link>
      <description>In a DATA step, use the INPUT function to convert your text-format date strings to SAS NUMERIC DATE variables.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 19 Feb 2009 16:39:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Question-regarding-quot-intck-quot/m-p/74787#M21711</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-02-19T16:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Question regarding "intck"</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Question-regarding-quot-intck-quot/m-p/74788#M21712</link>
      <description>I tried &lt;BR /&gt;
&lt;BR /&gt;
Start_date_new = Input (Start_date, 8.);&lt;BR /&gt;
&lt;BR /&gt;
And it doesn't work.</description>
      <pubDate>Thu, 19 Feb 2009 16:45:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Question-regarding-quot-intck-quot/m-p/74788#M21712</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-02-19T16:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Question regarding "intck"</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Question-regarding-quot-intck-quot/m-p/74789#M21713</link>
      <description>Of course, the string is not numeric, 8 digits.  It is a date string, so your INFORMAT must match the input data format/type being processed.&lt;BR /&gt;
&lt;BR /&gt;
Recommended SAS DOC reading - link below:&lt;BR /&gt;
&lt;BR /&gt;
Working with Dates in the SAS System&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/a001304321.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/a001304321.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
The SAS support website  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  provides both SAS product documentation and supplemental technical papers and code samples on this and other topics.  Try the SEARCH option at the initial web page or consider using a Google advanced search argument, as shown below:&lt;BR /&gt;
&lt;BR /&gt;
convert sas date variables site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 19 Feb 2009 16:52:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Question-regarding-quot-intck-quot/m-p/74789#M21713</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-02-19T16:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Question regarding "intck"</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Question-regarding-quot-intck-quot/m-p/74790#M21714</link>
      <description>I solved the problem. thanks!

Message was edited by: grantxu2000</description>
      <pubDate>Thu, 19 Feb 2009 16:59:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Question-regarding-quot-intck-quot/m-p/74790#M21714</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-02-19T16:59:18Z</dc:date>
    </item>
  </channel>
</rss>

