<?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 PLSQL-like functions in PROC SQL or PROC FEDSQL? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PLSQL-like-functions-in-PROC-SQL-or-PROC-FEDSQL/m-p/427346#M105376</link>
    <description>&lt;P&gt;I would like to be able to recreate the functionality of PLSQL functions in SAS.&amp;nbsp; Specifically a function that returns a table from a set of parameters.&amp;nbsp; Something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
  SELECT *
  FROM myfunction(&amp;amp;param1, &amp;amp;param2,...,&amp;amp;paramn);
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Would this be possible with PROC DS2 or PROC FCMP?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would an aggregation function be possible?&amp;nbsp; For instance I have a column of strings with another column to indicate group and I want to concatenate them based on the group column.&amp;nbsp; Something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
  SELECT myaggregationfunction(STRING_COLUMN)
  FROM mytable
  GROUP BY GROUP_COLUMN;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 12 Jan 2018 20:16:14 GMT</pubDate>
    <dc:creator>tomcmacdonald</dc:creator>
    <dc:date>2018-01-12T20:16:14Z</dc:date>
    <item>
      <title>PLSQL-like functions in PROC SQL or PROC FEDSQL?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PLSQL-like-functions-in-PROC-SQL-or-PROC-FEDSQL/m-p/427346#M105376</link>
      <description>&lt;P&gt;I would like to be able to recreate the functionality of PLSQL functions in SAS.&amp;nbsp; Specifically a function that returns a table from a set of parameters.&amp;nbsp; Something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
  SELECT *
  FROM myfunction(&amp;amp;param1, &amp;amp;param2,...,&amp;amp;paramn);
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Would this be possible with PROC DS2 or PROC FCMP?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would an aggregation function be possible?&amp;nbsp; For instance I have a column of strings with another column to indicate group and I want to concatenate them based on the group column.&amp;nbsp; Something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
  SELECT myaggregationfunction(STRING_COLUMN)
  FROM mytable
  GROUP BY GROUP_COLUMN;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Jan 2018 20:16:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PLSQL-like-functions-in-PROC-SQL-or-PROC-FEDSQL/m-p/427346#M105376</guid>
      <dc:creator>tomcmacdonald</dc:creator>
      <dc:date>2018-01-12T20:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: PLSQL-like functions in PROC SQL or PROC FEDSQL?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PLSQL-like-functions-in-PROC-SQL-or-PROC-FEDSQL/m-p/427381#M105380</link>
      <description>&lt;P&gt;What is your use case? There may be a better way to approach your problem than in SQL. In Oracle you don't have so much choice, but in SAS you do.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 22:05:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PLSQL-like-functions-in-PROC-SQL-or-PROC-FEDSQL/m-p/427381#M105380</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-01-12T22:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: PLSQL-like functions in PROC SQL or PROC FEDSQL?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PLSQL-like-functions-in-PROC-SQL-or-PROC-FEDSQL/m-p/427391#M105383</link>
      <description>&lt;P&gt;Group concatenation&amp;nbsp;is also on other SAS&amp;nbsp;users wish list. Please check the following SASware Ballot idea:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SASware-Ballot-Ideas/create-string-summary-functions/idi-p/288035" target="_blank"&gt;https://communities.sas.com/t5/SASware-Ballot-Ideas/create-string-summary-functions/idi-p/288035&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and vote for it! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 23:02:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PLSQL-like-functions-in-PROC-SQL-or-PROC-FEDSQL/m-p/427391#M105383</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-01-12T23:02:29Z</dc:date>
    </item>
  </channel>
</rss>

