<?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 Write_Array to Dataset with Macro Variable Name in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-FCMP-Write-Array-to-Dataset-with-Macro-Variable-Name/m-p/109069#M30397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you have SAS risk dimensions licensed you can try some thing like this(don't know is this what you are looking for)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC RISK;&lt;/P&gt;&lt;P&gt;ENVIRONMENT OPEN = &amp;lt;options&amp;gt;;&lt;/P&gt;&lt;P&gt;WRITEARRAYS OUT= datasetname ;&lt;/P&gt;&lt;P&gt;ENVIRONMENT SAVE;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Dec 2012 20:06:01 GMT</pubDate>
    <dc:creator>shivas</dc:creator>
    <dc:date>2012-12-28T20:06:01Z</dc:date>
    <item>
      <title>Proc FCMP Write_Array to Dataset with Macro Variable Name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-FCMP-Write-Array-to-Dataset-with-Macro-Variable-Name/m-p/109067#M30395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using Proc FCMP to create an output array for each observation in my data set.&amp;nbsp; I would like to aggregate those arrays into one data set at the end of Proc FCMP that I can use as input to the next part of my program.&amp;nbsp; What I tried to do was use the write_array function passing it a macro variable for the data set name (something like rc = write_array('setdata&amp;amp;i', outarray) where I'm using i to loop through each data point earlier on in the procedure.&amp;nbsp; My thought was then to take each of the setdata&amp;amp;i data sets and aggregate them after the Proc FCMP, but Proc FCMP doesn't seem to like having a macro variable stand in for the data set name.&amp;nbsp; I've played around with the quotes, etc but nothing seemed to work.&amp;nbsp; Can anyone help with the right syntax, or an alternative method to aggregate the arrays into one data set?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 15:16:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-FCMP-Write-Array-to-Dataset-with-Macro-Variable-Name/m-p/109067#M30395</guid>
      <dc:creator>JackG</dc:creator>
      <dc:date>2012-12-27T15:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc FCMP Write_Array to Dataset with Macro Variable Name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-FCMP-Write-Array-to-Dataset-with-Macro-Variable-Name/m-p/109068#M30396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You design does not sound very good.&amp;nbsp; Are you attempting to perform some sort of transposition?&amp;nbsp; The &amp;amp;i variable will not resolve inside single quotes.&amp;nbsp; Using macro variables inside a compiled function in PROC FCMP would be a pretty poor practice and would not work unless the variable is defined as a global and would potentially have issues being resolved even then.&amp;nbsp; Why don't you take the time and describe in full what it is you are attempting to do with your input data, provide sample input and output.&amp;nbsp; The only answer to your current question I could provide is that there is no way to provide you with the syntax of write_array to accomplish what you are seeking to do, which I am not really even sure what that it...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 21:45:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-FCMP-Write-Array-to-Dataset-with-Macro-Variable-Name/m-p/109068#M30396</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2012-12-27T21:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Proc FCMP Write_Array to Dataset with Macro Variable Name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-FCMP-Write-Array-to-Dataset-with-Macro-Variable-Name/m-p/109069#M30397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you have SAS risk dimensions licensed you can try some thing like this(don't know is this what you are looking for)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC RISK;&lt;/P&gt;&lt;P&gt;ENVIRONMENT OPEN = &amp;lt;options&amp;gt;;&lt;/P&gt;&lt;P&gt;WRITEARRAYS OUT= datasetname ;&lt;/P&gt;&lt;P&gt;ENVIRONMENT SAVE;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2012 20:06:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-FCMP-Write-Array-to-Dataset-with-Macro-Variable-Name/m-p/109069#M30397</guid>
      <dc:creator>shivas</dc:creator>
      <dc:date>2012-12-28T20:06:01Z</dc:date>
    </item>
  </channel>
</rss>

