<?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: Produce a Table Containing Parameters in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Produce-a-Table-Containing-Parameters/m-p/336494#M272467</link>
    <description>&lt;P&gt;There is a view in SAS called VMACRO which has all the macro data in, so you could do (and not sure if EG uses same terminology):&lt;/P&gt;
&lt;PRE&gt;data want;
  set sashelp.vmacro (where=(name in ("MVAR1","MVAR2")));
run;&lt;/PRE&gt;
&lt;P&gt;The above takes MVAR1/2 macro variable information and creates a dataset of it. &amp;nbsp;This has name and parameter.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Feb 2017 10:26:53 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-02-28T10:26:53Z</dc:date>
    <item>
      <title>Produce a Table Containing Parameters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Produce-a-Table-Containing-Parameters/m-p/336487#M272466</link>
      <description>&lt;P&gt;I've got a Process Flow in Enterprise Guide 5.1 that uses a number of Parameters. &amp;nbsp;The Parameters are a mix of numbers and dates. &amp;nbsp;I want to use a Code Node to produce a table that lists these parameters, one column for the parameter name and another for the entered value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone point me in the right direction?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 09:51:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Produce-a-Table-Containing-Parameters/m-p/336487#M272466</guid>
      <dc:creator>paulrockliffe</dc:creator>
      <dc:date>2017-02-28T09:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Produce a Table Containing Parameters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Produce-a-Table-Containing-Parameters/m-p/336494#M272467</link>
      <description>&lt;P&gt;There is a view in SAS called VMACRO which has all the macro data in, so you could do (and not sure if EG uses same terminology):&lt;/P&gt;
&lt;PRE&gt;data want;
  set sashelp.vmacro (where=(name in ("MVAR1","MVAR2")));
run;&lt;/PRE&gt;
&lt;P&gt;The above takes MVAR1/2 macro variable information and creates a dataset of it. &amp;nbsp;This has name and parameter.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 10:26:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Produce-a-Table-Containing-Parameters/m-p/336494#M272467</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-02-28T10:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Produce a Table Containing Parameters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Produce-a-Table-Containing-Parameters/m-p/336496#M272468</link>
      <description>&lt;P&gt;Hello, thanks for your help. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That code produces an empty table with the column headers, "scope", "name", "offset" and "value".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it looking just at Macros? &amp;nbsp;I don't have any Macros, only parameters, or prompts as I've remembered they're called in version 5.1.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 10:34:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Produce-a-Table-Containing-Parameters/m-p/336496#M272468</guid>
      <dc:creator>paulrockliffe</dc:creator>
      <dc:date>2017-02-28T10:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Produce a Table Containing Parameters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Produce-a-Table-Containing-Parameters/m-p/336497#M272469</link>
      <description>&lt;P&gt;Ah, yes thats just macro values, I thought prompt values in EG are macro values? &amp;nbsp;Anyways, there's likely to be another table in SASHELP library which holds the data, I don't have EG so can't tell you, but open an explorer window and have a look at the Vxxx tables in SASHELP.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 10:38:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Produce-a-Table-Containing-Parameters/m-p/336497#M272469</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-02-28T10:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Produce a Table Containing Parameters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Produce-a-Table-Containing-Parameters/m-p/336498#M272470</link>
      <description>&lt;P&gt;Thanks, there's a VPROMPT in there, so I'll start from that....&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 10:41:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Produce-a-Table-Containing-Parameters/m-p/336498#M272470</guid>
      <dc:creator>paulrockliffe</dc:creator>
      <dc:date>2017-02-28T10:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Produce a Table Containing Parameters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Produce-a-Table-Containing-Parameters/m-p/336499#M272471</link>
      <description>&lt;P&gt;VPROMPT looks right, columns are libname, memname, name, propmtname, id, text, type, length, promptype, dependentpid, description&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the table is blank. &amp;nbsp;I've associated the rompts with the code node, so while running the code it asks for the prompts, the prompts also have default values which must be stored somewhere. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 10:49:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Produce-a-Table-Containing-Parameters/m-p/336499#M272471</guid>
      <dc:creator>paulrockliffe</dc:creator>
      <dc:date>2017-02-28T10:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Produce a Table Containing Parameters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Produce-a-Table-Containing-Parameters/m-p/336500#M272472</link>
      <description>&lt;P&gt;EG parameters are stored in sashelp.vmacro. SAS changes the names to be all upcase. The parameters must have been assigned to the program-node.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 10:53:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Produce-a-Table-Containing-Parameters/m-p/336500#M272472</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2017-02-28T10:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Produce a Table Containing Parameters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Produce-a-Table-Containing-Parameters/m-p/336501#M272473</link>
      <description>&lt;P&gt;Thanks, yes I've found the prompts in VMACRO, so I know where they are now. &amp;nbsp;The prompts are associated with the Code Node in it's properties too. &amp;nbsp;Jus tneed to make it work now....&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 10:56:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Produce-a-Table-Containing-Parameters/m-p/336501#M272473</guid>
      <dc:creator>paulrockliffe</dc:creator>
      <dc:date>2017-02-28T10:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Produce a Table Containing Parameters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Produce-a-Table-Containing-Parameters/m-p/336502#M272474</link>
      <description>&lt;P&gt;Got it to work now, thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 11:00:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Produce-a-Table-Containing-Parameters/m-p/336502#M272474</guid>
      <dc:creator>paulrockliffe</dc:creator>
      <dc:date>2017-02-28T11:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Produce a Table Containing Parameters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Produce-a-Table-Containing-Parameters/m-p/336513#M272475</link>
      <description>&lt;P&gt;Quick follow-up question; how do I ammend the above code to specify which columns to include in the output?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 11:36:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Produce-a-Table-Containing-Parameters/m-p/336513#M272475</guid>
      <dc:creator>paulrockliffe</dc:creator>
      <dc:date>2017-02-28T11:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Produce a Table Containing Parameters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Produce-a-Table-Containing-Parameters/m-p/336515#M272476</link>
      <description>&lt;P&gt;You can do it many ways, for instance adding keep to the dataset only keeps the specified variables:&lt;/P&gt;
&lt;PRE&gt;data want;
  set sashelp.vmacro (where=(name in ("MVAR1","MVAR2")) keep=name);
run;&lt;/PRE&gt;
&lt;P&gt;Drop is the opposite. &amp;nbsp;You could also do it in the report procedure etc.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 11:47:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Produce-a-Table-Containing-Parameters/m-p/336515#M272476</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-02-28T11:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Produce a Table Containing Parameters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Produce-a-Table-Containing-Parameters/m-p/336523#M272477</link>
      <description>&lt;P&gt;Great, thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 12:06:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Produce-a-Table-Containing-Parameters/m-p/336523#M272477</guid>
      <dc:creator>paulrockliffe</dc:creator>
      <dc:date>2017-02-28T12:06:30Z</dc:date>
    </item>
  </channel>
</rss>

