<?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: Getting warning if we use label statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-fcmp-Getting-warning-if-we-use-label-statement/m-p/261327#M50823</link>
    <description>&lt;P&gt;That is because inside the function you are only dealing with temporary variables (that will not appear in the step where you call the function), and the output is just a value, with no attributes other than length.&lt;/P&gt;
&lt;P&gt;Therefore only the length= has an effect.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Apr 2016 11:41:48 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-04-05T11:41:48Z</dc:date>
    <item>
      <title>Proc fcmp: Getting warning if we use label statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-fcmp-Getting-warning-if-we-use-label-statement/m-p/261294#M50815</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have written the&amp;nbsp;'&lt;SPAN&gt;stdid' function using proc fcmp, I have used attrib statement but unfortunately i am getting the warning like "WARNING: The LABEL statement has no effect in a FUNCTION or SUBROUTINE."&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have referred the following SAS&amp;nbsp;site.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/68954/HTML/default/viewer.htm#n0seq1ln0q7zfrn1w44ym5h3se2k.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/68954/HTML/default/viewer.htm#n0seq1ln0q7zfrn1w44ym5h3se2k.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc fcmp outlib=sasuser..study.demo;&lt;BR /&gt; function stdid(var1 $) $;&lt;BR /&gt; attrib var2 length=$25 format=$upcase9. label='x';&lt;BR /&gt; var2=tstrip(var1);&lt;BR /&gt; return(var2);&lt;BR /&gt; endsub;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 07:35:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-fcmp-Getting-warning-if-we-use-label-statement/m-p/261294#M50815</guid>
      <dc:creator>yanamadala85</dc:creator>
      <dc:date>2016-04-05T07:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proc fcmp: Getting warning if we use label statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-fcmp-Getting-warning-if-we-use-label-statement/m-p/261327#M50823</link>
      <description>&lt;P&gt;That is because inside the function you are only dealing with temporary variables (that will not appear in the step where you call the function), and the output is just a value, with no attributes other than length.&lt;/P&gt;
&lt;P&gt;Therefore only the length= has an effect.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 11:41:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-fcmp-Getting-warning-if-we-use-label-statement/m-p/261327#M50823</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-04-05T11:41:48Z</dc:date>
    </item>
  </channel>
</rss>

