<?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: Script parameters from a table - SAS Risk and Finance Workbench in SAS Risk Management</title>
    <link>https://communities.sas.com/t5/SAS-Risk-Management/Script-parameters-from-a-table-SAS-Risk-and-Finance-Workbench/m-p/562631#M330</link>
    <description>&lt;P&gt;Hi Andreas,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RFW does not provide the means to load script parameters from a SAS table in the manner I believe you're looking for, i.e. the ability to load values for multiple parameters from a single table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, RFW does support the use of SAS code to define options for a given parameter. When you create a parameter via the UI and select a type of &lt;STRONG&gt;SAS Code&lt;/STRONG&gt;, you can specify code that generates the options for the parameter in a data set named WORK._PARAMETER_VALUE_SET_. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;data work._parameter_value_set_;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; length value_option $ 10;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; value_option='Option 1';&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; output;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; value_option='Option 2';&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; output;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; value_option='Option 3';&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; output;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your case, your code could also pull information from your existing table or otherwise provide dynamic input when populating the WORK._PARAMETER_VALUE_SET_ data set. But you would need to specify a separate code snippet for each parameter in the script. For details, refer to the &lt;A href="https://go.documentation.sas.com/?cdcId=rfwcdc&amp;amp;cdcVersion=3.2&amp;amp;docsetId=stressug&amp;amp;docsetTarget=p0jplk1z8fd0p1n14ne4vx31pb41.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;&lt;EM&gt;SAS Risk and Finance Workbench User's Guide&lt;/EM&gt;&lt;/A&gt; (credentials required).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If batch loading parameters and values is essential, the Lua API does support loading script parameters in one step with the script_create() function. See the &lt;A href="http://documentation.sas.com/?cdcId=rfwcdc&amp;amp;cdcVersion=3.2" target="_blank" rel="noopener"&gt;SAS Risk and Finance Workbench Help Center&lt;/A&gt; for more information about the Lua API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;</description>
    <pubDate>Thu, 30 May 2019 17:16:56 GMT</pubDate>
    <dc:creator>rspinks_sas</dc:creator>
    <dc:date>2019-05-30T17:16:56Z</dc:date>
    <item>
      <title>Script parameters from a table - SAS Risk and Finance Workbench</title>
      <link>https://communities.sas.com/t5/SAS-Risk-Management/Script-parameters-from-a-table-SAS-Risk-and-Finance-Workbench/m-p/561734#M329</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using RFW and I'm interested to know whether I can use a SAS table to load a script parameters when running a task.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a 2 variable table, parameter - value, which i would like to be loaded in the screen that pops up when executing a script for a task.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If yes, how can i do this and what the structure of the table should be?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2019 12:36:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Risk-Management/Script-parameters-from-a-table-SAS-Risk-and-Finance-Workbench/m-p/561734#M329</guid>
      <dc:creator>anioannides</dc:creator>
      <dc:date>2019-05-27T12:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Script parameters from a table - SAS Risk and Finance Workbench</title>
      <link>https://communities.sas.com/t5/SAS-Risk-Management/Script-parameters-from-a-table-SAS-Risk-and-Finance-Workbench/m-p/562631#M330</link>
      <description>&lt;P&gt;Hi Andreas,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RFW does not provide the means to load script parameters from a SAS table in the manner I believe you're looking for, i.e. the ability to load values for multiple parameters from a single table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, RFW does support the use of SAS code to define options for a given parameter. When you create a parameter via the UI and select a type of &lt;STRONG&gt;SAS Code&lt;/STRONG&gt;, you can specify code that generates the options for the parameter in a data set named WORK._PARAMETER_VALUE_SET_. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;data work._parameter_value_set_;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; length value_option $ 10;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; value_option='Option 1';&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; output;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; value_option='Option 2';&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; output;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; value_option='Option 3';&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; output;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your case, your code could also pull information from your existing table or otherwise provide dynamic input when populating the WORK._PARAMETER_VALUE_SET_ data set. But you would need to specify a separate code snippet for each parameter in the script. For details, refer to the &lt;A href="https://go.documentation.sas.com/?cdcId=rfwcdc&amp;amp;cdcVersion=3.2&amp;amp;docsetId=stressug&amp;amp;docsetTarget=p0jplk1z8fd0p1n14ne4vx31pb41.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;&lt;EM&gt;SAS Risk and Finance Workbench User's Guide&lt;/EM&gt;&lt;/A&gt; (credentials required).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If batch loading parameters and values is essential, the Lua API does support loading script parameters in one step with the script_create() function. See the &lt;A href="http://documentation.sas.com/?cdcId=rfwcdc&amp;amp;cdcVersion=3.2" target="_blank" rel="noopener"&gt;SAS Risk and Finance Workbench Help Center&lt;/A&gt; for more information about the Lua API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 17:16:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Risk-Management/Script-parameters-from-a-table-SAS-Risk-and-Finance-Workbench/m-p/562631#M330</guid>
      <dc:creator>rspinks_sas</dc:creator>
      <dc:date>2019-05-30T17:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Script parameters from a table - SAS Risk and Finance Workbench</title>
      <link>https://communities.sas.com/t5/SAS-Risk-Management/Script-parameters-from-a-table-SAS-Risk-and-Finance-Workbench/m-p/562777#M331</link>
      <description>&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll review the materials to see if I can work with lua&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 06:10:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Risk-Management/Script-parameters-from-a-table-SAS-Risk-and-Finance-Workbench/m-p/562777#M331</guid>
      <dc:creator>anioannides</dc:creator>
      <dc:date>2019-05-31T06:10:07Z</dc:date>
    </item>
  </channel>
</rss>

