<?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: How to apply INTCK and INTNX function in dataset ? in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/How-to-apply-INTCK-and-INTNX-function-in-dataset/m-p/435292#M4585</link>
    <description>&lt;P&gt;Basically you now need to use a data step program such as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set have;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; newvar = intck('interval',variable1,variable2); /* since you only have 1 datetime variable this is likely not what you want*/&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; othernewvar = intnx('interval', variable, incrementnumber);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can look up the syntax for INTX see what values are valid for interval. There are &lt;STRONG&gt;many&lt;/STRONG&gt; options so do not expect a complete listing here. If you have a datetime variable and want to increment by day, week, month preface the interval with DT such as 'dtday' 'dtmonth'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;More specific questions will yield better targeted responses.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Feb 2018 15:33:30 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-02-08T15:33:30Z</dc:date>
    <item>
      <title>How to apply INTCK and INTNX function in dataset ?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-apply-INTCK-and-INTNX-function-in-dataset/m-p/435182#M4583</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I m new to SAS.&amp;nbsp; &amp;nbsp;I am using SAS University Studio. I want to use INTCK and INTNX unction for given Dataset.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have imported following data-set&amp;nbsp; &lt;STRONG&gt;datetime&amp;nbsp;&lt;/STRONG&gt;in &lt;STRONG&gt;MYLIB&lt;/STRONG&gt; library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile ="/folders/myfolders/testdata/datetime.xlsx"
out=mylib.datetime dbms=xlsx replace;
getnames=yes;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;There is dataset on which i want to perform INTCK function.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="DateTime.PNG" style="width: 206px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18396i7E3387BDA15AD10F/image-size/large?v=v2&amp;amp;px=999" role="button" title="DateTime.PNG" alt="DateTime.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 08:00:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-apply-INTCK-and-INTNX-function-in-dataset/m-p/435182#M4583</guid>
      <dc:creator>jaycss</dc:creator>
      <dc:date>2018-02-08T08:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply INTCK and INTNX function in dataset ?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-apply-INTCK-and-INTNX-function-in-dataset/m-p/435194#M4584</link>
      <description>&lt;P&gt;You have not supplied any information for us to be able to help you.&amp;nbsp; Post your test data in the form of a datastep using the code window [ its the {i} above post are and following this post if needed:&lt;/P&gt;
&lt;P&gt;&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;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then show from this test data what you want to see out, and what the logic is.&amp;nbsp; Just saying I want to use XYZ function doesn't tell us anything, how do you want to use it, to get what?&lt;/P&gt;
&lt;P&gt;Also note posting pictures of data does not help, we need to see the structure of the data to determine things, is that actually a SAS numeric datetime variable for instance?&amp;nbsp; Intck/nx need nuermic SAS datetime variables to work with.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 09:03:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-apply-INTCK-and-INTNX-function-in-dataset/m-p/435194#M4584</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-02-08T09:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply INTCK and INTNX function in dataset ?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-apply-INTCK-and-INTNX-function-in-dataset/m-p/435292#M4585</link>
      <description>&lt;P&gt;Basically you now need to use a data step program such as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set have;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; newvar = intck('interval',variable1,variable2); /* since you only have 1 datetime variable this is likely not what you want*/&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; othernewvar = intnx('interval', variable, incrementnumber);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can look up the syntax for INTX see what values are valid for interval. There are &lt;STRONG&gt;many&lt;/STRONG&gt; options so do not expect a complete listing here. If you have a datetime variable and want to increment by day, week, month preface the interval with DT such as 'dtday' 'dtmonth'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;More specific questions will yield better targeted responses.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 15:33:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-apply-INTCK-and-INTNX-function-in-dataset/m-p/435292#M4585</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-02-08T15:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply INTCK and INTNX function in dataset ?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-apply-INTCK-and-INTNX-function-in-dataset/m-p/435935#M4602</link>
      <description>My recommendation is to start with the free SAS Programming 1 training, which will give you a foundation for SAS usage.&lt;BR /&gt;Right now learning SAS with fragments IMO pretty awkward and inefficient. &lt;BR /&gt;By the way, welcome to the wonderful and sometimes challenging world of SAS!</description>
      <pubDate>Sat, 10 Feb 2018 06:33:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-apply-INTCK-and-INTNX-function-in-dataset/m-p/435935#M4602</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-02-10T06:33:09Z</dc:date>
    </item>
  </channel>
</rss>

