<?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: What are the naming rules for Proc FCMP functions? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/What-are-the-naming-rules-for-Proc-FCMP-functions/m-p/898429#M355098</link>
    <description>FYI - if you have a paid SAS license this seems like a good question to ask tech support.</description>
    <pubDate>Thu, 12 Oct 2023 22:11:32 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2023-10-12T22:11:32Z</dc:date>
    <item>
      <title>What are the naming rules for Proc FCMP functions?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-are-the-naming-rules-for-Proc-FCMP-functions/m-p/898399#M355081</link>
      <description>&lt;P&gt;Others have posted here about why certain function names don't work.&amp;nbsp; It is suggested you can't use a reserved name.&lt;/P&gt;&lt;P&gt;The solution to one problem was posted as 'Well I don't know why' - just use a different function name.&lt;/P&gt;&lt;P&gt;I get that.&amp;nbsp; Like the sample below, 'convert' does not work but _convert would.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I &lt;U&gt;would like some reference to know what the naming rules are.&lt;/U&gt;&amp;nbsp; I've searched for days - any help appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;DIV&gt;%let outlib = work;&lt;/DIV&gt;&lt;DIV&gt;* Example 2: Return a Character Value;&lt;/DIV&gt;&lt;DIV&gt;proc fcmp outlib=&amp;amp;outlib..functions.conversions;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;*function lb2kgC(lb) $;&amp;nbsp; &amp;nbsp;*--this works;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;function&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt; convert&lt;/STRONG&gt;&lt;/FONT&gt;(lb) $;&amp;nbsp; *-- this does NOT work;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;length kg $10;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;kg = catt(put((lb/2.2),6.2),'Kg');&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return (kg);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;endsub;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 Oct 2023 20:43:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-are-the-naming-rules-for-Proc-FCMP-functions/m-p/898399#M355081</guid>
      <dc:creator>kwyland1</dc:creator>
      <dc:date>2023-10-12T20:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: What are the naming rules for Proc FCMP functions?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-are-the-naming-rules-for-Proc-FCMP-functions/m-p/898424#M355094</link>
      <description>&lt;UL class="lia-list-style-type-square"&gt;
&lt;LI&gt;Don't use the name of a procedure.&lt;/LI&gt;
&lt;LI&gt;Don't use the name of a statement (PROC EXPAND has a CONVERT statement).&lt;/LI&gt;
&lt;LI&gt;Don't use this list of reserved words (it's for the macro facility, but I would say it's just safe to avoid these reserved words everywhere).&lt;/LI&gt;
&lt;/UL&gt;
&lt;DIV class="MainContentArea_leftNav__20Qv_"&gt;
&lt;DIV class="MainContentArea_title__38xiz"&gt;&lt;SPAN&gt;SAS 9.4 / Viya 3.5 Macro Language Reference&lt;BR /&gt;Reserved Words&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/mcrolref/p0y43hj7lzhq1gn1r68h65wzljbt.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/mcrolref/p0y43hj7lzhq1gn1r68h65wzljbt.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;UL class="lia-list-style-type-square"&gt;
&lt;LI class="MainContentArea_title__38xiz"&gt;&lt;SPAN&gt;Don't start function name with a number&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class="MainContentArea_title__38xiz"&gt;No special characters and no spaces&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 21:56:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-are-the-naming-rules-for-Proc-FCMP-functions/m-p/898424#M355094</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-10-12T21:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: What are the naming rules for Proc FCMP functions?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-are-the-naming-rules-for-Proc-FCMP-functions/m-p/898429#M355098</link>
      <description>FYI - if you have a paid SAS license this seems like a good question to ask tech support.</description>
      <pubDate>Thu, 12 Oct 2023 22:11:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-are-the-naming-rules-for-Proc-FCMP-functions/m-p/898429#M355098</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-10-12T22:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: What are the naming rules for Proc FCMP functions?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-are-the-naming-rules-for-Proc-FCMP-functions/m-p/898998#M355342</link>
      <description>I do - was just trying out communities first&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Oct 2023 18:47:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-are-the-naming-rules-for-Proc-FCMP-functions/m-p/898998#M355342</guid>
      <dc:creator>kwyland1</dc:creator>
      <dc:date>2023-10-17T18:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: What are the naming rules for Proc FCMP functions?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-are-the-naming-rules-for-Proc-FCMP-functions/m-p/899000#M355343</link>
      <description>&lt;P&gt;I think I will shoot my code to TS.&amp;nbsp; The reserved words list for Macros doesn't have the one I tried which is convert.&amp;nbsp; Also tried conv_.&amp;nbsp; Bellies up.&amp;nbsp; If I get a response from TS that anyone could benefit from, I'll post it here.&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 18:51:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-are-the-naming-rules-for-Proc-FCMP-functions/m-p/899000#M355343</guid>
      <dc:creator>kwyland1</dc:creator>
      <dc:date>2023-10-17T18:51:08Z</dc:date>
    </item>
  </channel>
</rss>

