<?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: PMT function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PMT-function/m-p/465106#M285167</link>
    <description>&lt;P&gt;The PMT function was introduced in SAS 9.3, so it should be available in Base SAS in a correctly installed 9.4 session.&lt;/P&gt;
&lt;P&gt;Could you paste the log from running the following?&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc product_status; run;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 25 May 2018 15:11:06 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2018-05-25T15:11:06Z</dc:date>
    <item>
      <title>PMT function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PMT-function/m-p/465012#M285164</link>
      <description>&lt;P&gt;Does the &lt;STRONG&gt;PMT&lt;/STRONG&gt; function&amp;nbsp;included in the SAS Analytics Pro?&lt;/P&gt;&lt;P&gt;I receive an error when use in data step:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;ERROR 68-185: The function PMT is unknown, or cannot be accessed&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 11:42:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PMT-function/m-p/465012#M285164</guid>
      <dc:creator>Boriana</dc:creator>
      <dc:date>2018-05-25T11:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: PMT function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PMT-function/m-p/465041#M285165</link>
      <description>&lt;P&gt;Please&amp;nbsp;show your code and tell us your SAS Version. For example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put &amp;amp;=SYSVLONG;

data _null_;
/* The payment for a $5,000 loan earning a 12% nominal annual interest rate, that is to be paid back in five monthly payments */
P1 = PMT(.01/12, 5, 5000);
put P1=;
P = FINANCE("PMT",.01/12, 5, 5000);
put P=;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;prints the following in the SAS log:&lt;/P&gt;
&lt;P&gt;13 %put &amp;amp;=SYSVLONG;&lt;BR /&gt;SYSVLONG=9.04.01M5P091317&lt;BR /&gt;14&lt;BR /&gt;15 data _null_;&lt;BR /&gt;16 /* The payment for a $5,000 loan earning a 12% nominal annual&lt;BR /&gt;16 ! interest rate, that is to be paid back in five monthly payments */&lt;BR /&gt;17 P1 = PMT(.01/12, 5, 5000);&lt;BR /&gt;18 put P1=;&lt;BR /&gt;19 P = FINANCE("PMT",.01/12, 5, 5000);&lt;BR /&gt;20 put P=;&lt;BR /&gt;21 run;&lt;/P&gt;
&lt;P&gt;P1=1002.5013883&lt;BR /&gt;P=-1002.501388&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 12:58:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PMT-function/m-p/465041#M285165</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-05-25T12:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: PMT function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PMT-function/m-p/465099#M285166</link>
      <description>&lt;P&gt;I have SAS version 9.4. The code suggested by you returned the same error.&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 15:02:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PMT-function/m-p/465099#M285166</guid>
      <dc:creator>Boriana</dc:creator>
      <dc:date>2018-05-25T15:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: PMT function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PMT-function/m-p/465106#M285167</link>
      <description>&lt;P&gt;The PMT function was introduced in SAS 9.3, so it should be available in Base SAS in a correctly installed 9.4 session.&lt;/P&gt;
&lt;P&gt;Could you paste the log from running the following?&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc product_status; run;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 15:11:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PMT-function/m-p/465106#M285167</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-05-25T15:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: PMT function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PMT-function/m-p/465111#M285168</link>
      <description>For Base SAS Software ...&lt;BR /&gt;Custom version information: 9.4_M1&lt;BR /&gt;Image version information: 9.04.01M1P120413&lt;BR /&gt;For SAS/STAT ...&lt;BR /&gt;Custom version information: 13.1&lt;BR /&gt;For SAS/GRAPH ...&lt;BR /&gt;Custom version information: 9.4_M1&lt;BR /&gt;For SAS/IML ...&lt;BR /&gt;Custom version information: 13.1&lt;BR /&gt;For High Performance Suite ...&lt;BR /&gt;Custom version information: 2.2&lt;BR /&gt;Image version information: 9.04.01M0P022614&lt;BR /&gt;For SAS/ACCESS Interface to ODBC ...&lt;BR /&gt;Custom version information: 9.4_M1&lt;BR /&gt;</description>
      <pubDate>Fri, 25 May 2018 15:20:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PMT-function/m-p/465111#M285168</guid>
      <dc:creator>Boriana</dc:creator>
      <dc:date>2018-05-25T15:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: PMT function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PMT-function/m-p/465118#M285169</link>
      <description>&lt;P&gt;Since you do not have ETS installed you need to &lt;A href="http://go.documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=p1cnn1jwdmhce0n1obxmu4iq26ge.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;use the FINANCE function &lt;/A&gt;with first argument of 'PMT', as shown in my example. The FINANCE function should work for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you said&amp;nbsp;"The code suggested by you returned the same error" I assumed that you got errors for both calls. I now suspect that the FINANCE call succeeded. In the future, please paste the log, as I requested.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 15:32:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PMT-function/m-p/465118#M285169</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-05-25T15:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: PMT function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PMT-function/m-p/465447#M285170</link>
      <description>&lt;P&gt;It worked! Thank you very much for your answer! I did not check the log for the FINANCE function. It did not return an error. I apologize for not pasting the log as requested. I will be more considerate next time. Sorry again!&lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2018 11:05:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PMT-function/m-p/465447#M285170</guid>
      <dc:creator>Boriana</dc:creator>
      <dc:date>2018-05-28T11:05:20Z</dc:date>
    </item>
  </channel>
</rss>

