<?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 Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/INTNX-problem/m-p/265147#M57852</link>
    <description>&lt;P&gt;Have you confirmed that your date variables are actually dates, and not date-times?&amp;nbsp; Date-time values would likely be too large for INTNX to handle.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Apr 2016 16:30:48 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2016-04-20T16:30:48Z</dc:date>
    <item>
      <title>INTNX- problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/INTNX-problem/m-p/265140#M57849</link>
      <description>&lt;P&gt;Hello eveyrone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was trying to implement this code. unforutnately, sas does not recognize my intnx. what shoud i do?&lt;/P&gt;&lt;P&gt;Best wishes,&lt;/P&gt;&lt;P&gt;Sincerely Daniel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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:17:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/INTNX-problem/m-p/265140#M57849</guid>
      <dc:creator>Daniel1027</dc:creator>
      <dc:date>2016-04-20T16:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX- problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/INTNX-problem/m-p/265143#M57850</link>
      <description>&lt;P&gt;Post your log or explain how it doesn't work please.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think your error is In how you want to name the variable with spaces. If you want spaces in a variable name the you wrap it in quotes and add an N afterwards. You're missing the N from both variable names.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 16:21:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/INTNX-problem/m-p/265143#M57850</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-20T16:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX- problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/INTNX-problem/m-p/265144#M57851</link>
      <description>DATA crsp_m (KEEP=permco permno date ticker ncusip shrcd exchcd prc ret retx shrout cfacpr cfacshr exchcd);&lt;BR /&gt;MERGE tmp1.mse tmp1.msf;&lt;BR /&gt;BY permno date;&lt;BR /&gt;RUN;&lt;BR /&gt;PROC SORT DATA=crsp_m OUT=crsp_m;&lt;BR /&gt;BY date permno;&lt;BR /&gt;RUN;&lt;BR /&gt;PROC 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;BR /&gt;&lt;BR /&gt;this is the entire code i am trying.&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;</description>
      <pubDate>Wed, 20 Apr 2016 16:24:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/INTNX-problem/m-p/265144#M57851</guid>
      <dc:creator>Daniel1027</dc:creator>
      <dc:date>2016-04-20T16:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX- problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/INTNX-problem/m-p/265147#M57852</link>
      <description>&lt;P&gt;Have you confirmed that your date variables are actually dates, and not date-times?&amp;nbsp; Date-time values would likely be too large for INTNX to handle.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 16:30:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/INTNX-problem/m-p/265147#M57852</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-04-20T16:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX- problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/INTNX-problem/m-p/265150#M57853</link>
      <description>i am novice to sas. how do i confirm? i am dealing with 10gb dataset. one thing: why is abs not working?</description>
      <pubDate>Wed, 20 Apr 2016 16:35:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/INTNX-problem/m-p/265150#M57853</guid>
      <dc:creator>Daniel1027</dc:creator>
      <dc:date>2016-04-20T16:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX- problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/INTNX-problem/m-p/265162#M57854</link>
      <description>&lt;P&gt;The ABS() function works fine, but you have missing values for one of the variables in the function and the log is warning you that in this case you will get a missing value returned.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 17:11:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/INTNX-problem/m-p/265162#M57854</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-20T17:11:18Z</dc:date>
    </item>
  </channel>
</rss>

