<?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: Proc fcmp in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-fcmp/m-p/253043#M56870</link>
    <description>&lt;P&gt;I came across we have to specify the three level&amp;nbsp;name of a library entry using the formats libref.catalog.paackage. This option&lt;BR /&gt;is mandatory when you use the OUTLIB= option&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I can able to see only two levels, can you please help me more on this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kafeel&lt;/P&gt;</description>
    <pubDate>Sun, 28 Feb 2016 16:20:01 GMT</pubDate>
    <dc:creator>KafeelBasha</dc:creator>
    <dc:date>2016-02-28T16:20:01Z</dc:date>
    <item>
      <title>Proc fcmp</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-fcmp/m-p/252935#M56861</link>
      <description>&lt;P&gt;While working with proc fcmp procedure how to assign library with "outlib=" options. Is there a standard way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Getting error with below codes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc fcmp outlib;&lt;BR /&gt;function lb2kg(lb);&lt;BR /&gt;kg = lb/2.2;&lt;BR /&gt;return (kg);&lt;BR /&gt;endsub;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why do we need the option cmplib. What does the below code says&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"options cmplib=(funcsol.functions);"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need help.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2016 15:43:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-fcmp/m-p/252935#M56861</guid>
      <dc:creator>KafeelBasha</dc:creator>
      <dc:date>2016-02-27T15:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proc fcmp</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-fcmp/m-p/252942#M56862</link>
      <description>&lt;P&gt;OUTLIB= specifies a location where compiled finctions/subroutines will be stored&lt;/P&gt;
&lt;P&gt;Syntax is&lt;/P&gt;
&lt;PRE&gt;outlib=mylib.function&lt;/PRE&gt;
&lt;P&gt;where &lt;EM&gt;mylib&lt;/EM&gt; denotes a library that is currently assigned and &lt;EM&gt;function&lt;/EM&gt; is the name of a member of type cmpsub in that library.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The system option CMPLIB= lets you specify such a member from which functions/subroutines shall be included.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002975306.htm" target="_self"&gt;PROC FCMP Statement&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#base-sysop-cmplib.htm" target="_self"&gt;CMPLIB= System Option&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2016 17:25:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-fcmp/m-p/252942#M56862</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-02-27T17:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proc fcmp</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-fcmp/m-p/253043#M56870</link>
      <description>&lt;P&gt;I came across we have to specify the three level&amp;nbsp;name of a library entry using the formats libref.catalog.paackage. This option&lt;BR /&gt;is mandatory when you use the OUTLIB= option&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I can able to see only two levels, can you please help me more on this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kafeel&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2016 16:20:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-fcmp/m-p/253043#M56870</guid>
      <dc:creator>KafeelBasha</dc:creator>
      <dc:date>2016-02-28T16:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Proc fcmp</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-fcmp/m-p/253071#M56874</link>
      <description>&lt;P&gt;It's a bit confusing that the options is called "outlib", when you are referring to data set observations in a logical structure called package.&lt;/P&gt;
&lt;P&gt;So you won't see the three level name somewhere in the SAS library, or by using proc datasets/contents.&lt;/P&gt;
&lt;P&gt;But if you open the data set (two level name) you will see the package (several observations).&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2016 21:46:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-fcmp/m-p/253071#M56874</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-02-28T21:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc fcmp</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-fcmp/m-p/261292#M57600</link>
      <description>&lt;P&gt;&lt;SPAN&gt;While creating the user defined functions by using PROC FCMP, we have to mention the location where the created function should be saved. It shoud be in the form of three level. First level indicates library name, second level indicated dataset name and third level indicated package name.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Within the library, each function or subroutines is associated with a "Package".&lt;/P&gt;
&lt;P&gt;Package is a group of functions and subroutines.&lt;/P&gt;
&lt;P&gt;Function library can contain multiple packages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Example1;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;/* Declaring the function */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;proc fcmp outlib=&lt;FONT color="#FF6600"&gt;sasuser&lt;/FONT&gt;.&lt;FONT color="#3366FF"&gt;study&lt;/FONT&gt;.&lt;FONT color="#00FF00"&gt;demo&lt;/FONT&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; function study_day(intervention_date, event_date);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; n=event_date-intervention_date;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if n &amp;lt;= &lt;STRONG&gt;0&lt;/STRONG&gt; then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; n=n+&lt;STRONG&gt;1&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (n);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; endsub;&lt;/P&gt;
&lt;P&gt;Run;&lt;/P&gt;
&lt;P&gt;options cmplib=sasuser.funcs;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; Ae;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; start = &lt;STRONG&gt;'15Feb2006'd&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; today = &lt;STRONG&gt;'27Mar2006'd&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; sd = study_day(start, today);&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 07:31:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-fcmp/m-p/261292#M57600</guid>
      <dc:creator>yanamadala85</dc:creator>
      <dc:date>2016-04-05T07:31:41Z</dc:date>
    </item>
  </channel>
</rss>

