<?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: Calculating Present Value (PV) or PV Function in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Calculating-Present-Value-PV-or-PV-Function-in-SAS/m-p/568402#M159993</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138573"&gt;@Timbim&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Ballardw,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am getting an error with the finance function. Below is my logic&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;Data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; loans06;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; loans05;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;r= finance(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'pv'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;,Current_DRInterestRate/Current_LoanPaymentFrequency,RemainingPeriods,MonthlyPmtPostMod);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;run&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Below is the error message&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: Macro variable ACCESSIBLE resolves to ACCESSIBLE&lt;/P&gt;
&lt;P&gt;14 Data loans06;&lt;/P&gt;
&lt;P&gt;15 set loans05;&lt;/P&gt;
&lt;P&gt;16 r= finance('pv',Current_DRInterestRate/Current_LoanPaymentFrequency,RemainingPeriods,MonthlyPmtPostMod);&lt;/P&gt;
&lt;P&gt;_______&lt;/P&gt;
&lt;P&gt;68&lt;/P&gt;
&lt;P&gt;ERROR 68-185: The function FINANCE is unknown, or cannot be accessed.&lt;/P&gt;
&lt;P&gt;17 run;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;When we have a MACRO message, such as our SYMBOLGEN result the issue can be related to a number of other macro generated statements from previous lines of code. And without the definition of the macro or data sets it is hard to trace.&lt;/P&gt;
&lt;P&gt;If you extract that code from the middle of your macro and run alone what does the log show?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since the FINANCE function is a BASE SAS function about the only reason I would expect to see such an error without macro code is either you are running a version of SAS that predates the FINANCE function or you are running this code in some module of SAS that can't access the function for some reason.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jun 2019 15:57:39 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-06-24T15:57:39Z</dc:date>
    <item>
      <title>Calculating Present Value (PV) or PV Function in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-Present-Value-PV-or-PV-Function-in-SAS/m-p/567835#M159736</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I am working on a mini project and as part of that I need to determine the Present Value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please help me how to compute Present Value? I could not find a PV function in SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was doing something like the following but SAS could not recognise the PV function I inserted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PV((Current_DRInterestRate/Current_LoanPaymentFrequency),RemainingPeriods,CALCULATED MonthlyPmtPostMod)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Mags&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 05:46:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-Present-Value-PV-or-PV-Function-in-SAS/m-p/567835#M159736</guid>
      <dc:creator>Timbim</dc:creator>
      <dc:date>2019-06-21T05:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Present Value (PV) or PV Function in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-Present-Value-PV-or-PV-Function-in-SAS/m-p/567838#M159739</link>
      <description>&lt;P&gt;Perhaps the &lt;A href="https://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=p1lbgkdb366ey8n1ixus31thuqey.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;Finance PV Function&lt;/A&gt; can help you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 05:53:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-Present-Value-PV-or-PV-Function-in-SAS/m-p/567838#M159739</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-06-21T05:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Present Value (PV) or PV Function in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-Present-Value-PV-or-PV-Function-in-SAS/m-p/567942#M159776</link>
      <description>&lt;P&gt;The FINANCE function will do something like 53 different financial calculation from ACCRINT, accrued interest, to YIELDMAT, annual yield of a security that pays interest at maturity.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 15:02:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-Present-Value-PV-or-PV-Function-in-SAS/m-p/567942#M159776</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-06-21T15:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Present Value (PV) or PV Function in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-Present-Value-PV-or-PV-Function-in-SAS/m-p/568268#M159919</link>
      <description>&lt;P&gt;Hi Ballardw,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting an error with the finance function. Below is my logic&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;Data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; loans06;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; loans05;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;r= finance(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'pv'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;,Current_DRInterestRate/Current_LoanPaymentFrequency,RemainingPeriods,MonthlyPmtPostMod);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;run&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Below is the error message&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SYMBOLGEN: Macro variable ACCESSIBLE resolves to ACCESSIBLE&lt;/P&gt;&lt;P&gt;14 Data loans06;&lt;/P&gt;&lt;P&gt;15 set loans05;&lt;/P&gt;&lt;P&gt;16 r= finance('pv',Current_DRInterestRate/Current_LoanPaymentFrequency,RemainingPeriods,MonthlyPmtPostMod);&lt;/P&gt;&lt;P&gt;_______&lt;/P&gt;&lt;P&gt;68&lt;/P&gt;&lt;P&gt;ERROR 68-185: The function FINANCE is unknown, or cannot be accessed.&lt;/P&gt;&lt;P&gt;17 run;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 03:22:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-Present-Value-PV-or-PV-Function-in-SAS/m-p/568268#M159919</guid>
      <dc:creator>Timbim</dc:creator>
      <dc:date>2019-06-24T03:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Present Value (PV) or PV Function in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-Present-Value-PV-or-PV-Function-in-SAS/m-p/568402#M159993</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138573"&gt;@Timbim&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Ballardw,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am getting an error with the finance function. Below is my logic&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;Data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; loans06;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; loans05;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;r= finance(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'pv'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;,Current_DRInterestRate/Current_LoanPaymentFrequency,RemainingPeriods,MonthlyPmtPostMod);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;run&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Below is the error message&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: Macro variable ACCESSIBLE resolves to ACCESSIBLE&lt;/P&gt;
&lt;P&gt;14 Data loans06;&lt;/P&gt;
&lt;P&gt;15 set loans05;&lt;/P&gt;
&lt;P&gt;16 r= finance('pv',Current_DRInterestRate/Current_LoanPaymentFrequency,RemainingPeriods,MonthlyPmtPostMod);&lt;/P&gt;
&lt;P&gt;_______&lt;/P&gt;
&lt;P&gt;68&lt;/P&gt;
&lt;P&gt;ERROR 68-185: The function FINANCE is unknown, or cannot be accessed.&lt;/P&gt;
&lt;P&gt;17 run;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;When we have a MACRO message, such as our SYMBOLGEN result the issue can be related to a number of other macro generated statements from previous lines of code. And without the definition of the macro or data sets it is hard to trace.&lt;/P&gt;
&lt;P&gt;If you extract that code from the middle of your macro and run alone what does the log show?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since the FINANCE function is a BASE SAS function about the only reason I would expect to see such an error without macro code is either you are running a version of SAS that predates the FINANCE function or you are running this code in some module of SAS that can't access the function for some reason.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 15:57:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-Present-Value-PV-or-PV-Function-in-SAS/m-p/568402#M159993</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-06-24T15:57:39Z</dc:date>
    </item>
  </channel>
</rss>

