<?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: Error sas in function define in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Error-sas-in-function-define/m-p/624778#M20173</link>
    <description>&lt;P&gt;You're welcome &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/304302"&gt;@imlearningsas&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
    <pubDate>Fri, 14 Feb 2020 10:50:31 GMT</pubDate>
    <dc:creator>ed_sas_member</dc:creator>
    <dc:date>2020-02-14T10:50:31Z</dc:date>
    <item>
      <title>Error sas in function define</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-sas-in-function-define/m-p/624763#M20169</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello I've written this code (bellow) from sas learning I got this error I do not understand it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="eror.PNG" style="width: 503px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36115i6735CF7418F76C2C/image-size/large?v=v2&amp;amp;px=999" role="button" title="eror.PNG" alt="eror.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc fcmp outlib=sasuser.funcs.trial;

   function study_day(intervention_date, event_date);

      n = event_date - intervention_date;
         if n &amp;gt;= 0 then
            n = n + 1;
         return (n);
   endsub;

options cmplib=sasuser.funcs;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 08:52:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-sas-in-function-define/m-p/624763#M20169</guid>
      <dc:creator>imlearningsas</dc:creator>
      <dc:date>2020-02-14T08:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error sas in function define</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-sas-in-function-define/m-p/624766#M20170</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;maybe try:&lt;/P&gt;&lt;PRE&gt;proc fcmp outlib=WORK.funcs.trial;&lt;/PRE&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the best&lt;/P&gt;&lt;P&gt;Bart&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 09:26:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-sas-in-function-define/m-p/624766#M20170</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2020-02-14T09:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error sas in function define</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-sas-in-function-define/m-p/624773#M20171</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/304302"&gt;@imlearningsas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you sure you have write access rights to the SASUSER library?&lt;/P&gt;
&lt;P&gt;Please try with the WORK library or any user defined library:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc fcmp outlib=work.funcs.trial;

   function study_day(intervention_date, event_date);

      n = event_date - intervention_date;
         if n &amp;gt;= 0 then
            n = n + 1;
         return (n);
   endsub;

options cmplib=work.funcs;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Feb 2020 10:08:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-sas-in-function-define/m-p/624773#M20171</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-02-14T10:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Error sas in function define</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-sas-in-function-define/m-p/624777#M20172</link>
      <description>&lt;P&gt;This should be the problem, I do not have acces.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 10:48:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-sas-in-function-define/m-p/624777#M20172</guid>
      <dc:creator>imlearningsas</dc:creator>
      <dc:date>2020-02-14T10:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error sas in function define</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-sas-in-function-define/m-p/624778#M20173</link>
      <description>&lt;P&gt;You're welcome &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/304302"&gt;@imlearningsas&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 10:50:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-sas-in-function-define/m-p/624778#M20173</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-02-14T10:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error sas in function define</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-sas-in-function-define/m-p/624779#M20174</link>
      <description>It works, thanks.</description>
      <pubDate>Fri, 14 Feb 2020 10:51:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-sas-in-function-define/m-p/624779#M20174</guid>
      <dc:creator>imlearningsas</dc:creator>
      <dc:date>2020-02-14T10:51:46Z</dc:date>
    </item>
  </channel>
</rss>

