<?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: INTNX - problem in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/INTNX-problem/m-p/265168#M52107</link>
    <description>&lt;P&gt;Unless you can explain the reason for a warning, it is dangerous to ignore it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a program&amp;nbsp; you can try, to inspect one of the date variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;options obs=5;&lt;/P&gt;
&lt;P&gt;proc print data=tmp1.msedelist;&lt;/P&gt;
&lt;P&gt;var dlstdt;&lt;/P&gt;
&lt;P&gt;where dlstdt=.;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;proc print data=tmp1.msedelist;&lt;/P&gt;
&lt;P&gt;var dlstdt;&lt;/P&gt;
&lt;P&gt;where dlstdt &amp;gt; .;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;options obs=max;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Apr 2016 17:26:16 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2016-04-20T17:26:16Z</dc:date>
    <item>
      <title>INTNX - problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-problem/m-p/265142#M52092</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was trying to implement this code, unfortunately sas does not recognize intnx. what should i do?&lt;/P&gt;&lt;P&gt;Best wishes,&lt;/P&gt;&lt;P&gt;Sincerely Daniel,&lt;/P&gt;&lt;P&gt;ROC SQL;&lt;BR /&gt;CREATE TABLE crsp_m2&lt;BR /&gt;AS SELECT A.*, B.dlret,&lt;BR /&gt;sum(1,ret)*sum(1,dlret)-1 as retadj "adjusted return for delisting",&lt;BR /&gt;abs(a.prc*a.shrout) as MEq 'Market Value of Equity'&lt;BR /&gt;FROM CRSP_M AS A LEFT JOIN tmp1.msedelist (where=(missing(dlret)=0 ) ) AS b&lt;BR /&gt;ON a.permno=b.permno AND&lt;BR /&gt;intnx('month',a.date,0,'E')=intnx('month',b.DLSTDT,0,'E')&lt;BR /&gt;ORDER BY date, permco, MEq;&lt;BR /&gt;QUIT;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 16:18:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-problem/m-p/265142#M52092</guid>
      <dc:creator>Daniel1027</dc:creator>
      <dc:date>2016-04-20T16:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX - problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-problem/m-p/265151#M52096</link>
      <description>&lt;P&gt;Print out a few values for your date variables and see what they look like.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 16:42:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-problem/m-p/265151#M52096</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-04-20T16:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX - problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-problem/m-p/265154#M52098</link>
      <description>the code works without implementing abs and intnx. i am okay with this code. but afterwards i thought, abs and intnx may cause new issue. because my final code is not working. intnx and abs are the reason why final code is not wokring for sure.</description>
      <pubDate>Wed, 20 Apr 2016 16:50:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-problem/m-p/265154#M52098</guid>
      <dc:creator>Daniel1027</dc:creator>
      <dc:date>2016-04-20T16:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX - problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-problem/m-p/265161#M52102</link>
      <description>&lt;P&gt;When you say "this code works" what does that mean?&amp;nbsp; It might run without error, but the output will certainly be different when you take out significant pieces of the program.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 17:10:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-problem/m-p/265161#M52102</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-04-20T17:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX - problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-problem/m-p/265165#M52104</link>
      <description>i mean, this code works with some warnings. log shows :&lt;BR /&gt;LOG:&lt;BR /&gt;NOTE: Invalid (or missing) arguments to the ABS function have caused the function to return a&lt;BR /&gt;missing value.&lt;BR /&gt;NOTE: Invalid argument 2 to function INTNX. Missing values may be generated.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Apr 2016 17:17:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-problem/m-p/265165#M52104</guid>
      <dc:creator>Daniel1027</dc:creator>
      <dc:date>2016-04-20T17:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX - problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-problem/m-p/265168#M52107</link>
      <description>&lt;P&gt;Unless you can explain the reason for a warning, it is dangerous to ignore it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a program&amp;nbsp; you can try, to inspect one of the date variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;options obs=5;&lt;/P&gt;
&lt;P&gt;proc print data=tmp1.msedelist;&lt;/P&gt;
&lt;P&gt;var dlstdt;&lt;/P&gt;
&lt;P&gt;where dlstdt=.;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;proc print data=tmp1.msedelist;&lt;/P&gt;
&lt;P&gt;var dlstdt;&lt;/P&gt;
&lt;P&gt;where dlstdt &amp;gt; .;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;options obs=max;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 17:26:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-problem/m-p/265168#M52107</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-04-20T17:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX - problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-problem/m-p/265177#M52111</link>
      <description>i am novice to sas and a student who is trying to learn sas individually. here is what i get :&lt;BR /&gt;Obs DLSTDT&lt;BR /&gt;1 19870611&lt;BR /&gt;2 20151231&lt;BR /&gt;3 20130215&lt;BR /&gt;4 19951215&lt;BR /&gt;5 19910711&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Apr 2016 17:41:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-problem/m-p/265177#M52111</guid>
      <dc:creator>Daniel1027</dc:creator>
      <dc:date>2016-04-20T17:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX - problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-problem/m-p/265183#M52115</link>
      <description>&lt;P&gt;SAS expects the values of a date variable in a specific format, namely the number of days since 1 jan 1960. Your DLSTDT​ variable looks to be a yyyymmdd value, which is not a SAS data value. Is your currnt DLSTDT​&amp;nbsp;character or numeric. You will need to create a date value and the approach varies depending on what type variable you currently have.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A brief example program;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data junk;
   x = input('19870611',yymmdd8.);
   y = intnx('month',x,1);
   format x y mmddyy10.;
run;

proc print; run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Apr 2016 17:57:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-problem/m-p/265183#M52115</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-04-20T17:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX - problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-problem/m-p/265191#M52120</link>
      <description>dlstdt is numeric and format is:YYMMDDN8.</description>
      <pubDate>Wed, 20 Apr 2016 18:24:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-problem/m-p/265191#M52120</guid>
      <dc:creator>Daniel1027</dc:creator>
      <dc:date>2016-04-20T18:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX - problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-problem/m-p/265192#M52121</link>
      <description>i know, it is a silly question. but how do i drop x and take y as a main afterward?</description>
      <pubDate>Wed, 20 Apr 2016 18:31:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-problem/m-p/265192#M52121</guid>
      <dc:creator>Daniel1027</dc:creator>
      <dc:date>2016-04-20T18:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX - problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-problem/m-p/265194#M52122</link>
      <description>&lt;P&gt;how should i change the entire code to change my dsltdt format?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks a lot.&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 18:36:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-problem/m-p/265194#M52122</guid>
      <dc:creator>Daniel1027</dc:creator>
      <dc:date>2016-04-20T18:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX - problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-problem/m-p/265201#M52124</link>
      <description>&lt;P&gt;Given what you found (the sample values you printed, plus knowing that your variable is numeric with a format of YYMMDDN8.), the DSLTDT variable is fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you able to get similar information for the other date variable named DATE?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 19:04:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-problem/m-p/265201#M52124</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-04-20T19:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX - problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTNX-problem/m-p/265309#M52162</link>
      <description>dlstdt is the date .....</description>
      <pubDate>Thu, 21 Apr 2016 04:35:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTNX-problem/m-p/265309#M52162</guid>
      <dc:creator>Daniel1027</dc:creator>
      <dc:date>2016-04-21T04:35:19Z</dc:date>
    </item>
  </channel>
</rss>

