<?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: Register metadata table with subset of rows in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Register-metadata-table-with-subset-of-rows/m-p/361796#M10876</link>
    <description>Not sure if I entirely understand your application.&lt;BR /&gt;You cannot enter a filter as such in a metadata object. You can do some dynamic filtering if you are using metabound libraries, but that is primarily target for row level access purposes.&lt;BR /&gt;It's sounds like you need views or infomaps for this.</description>
    <pubDate>Thu, 25 May 2017 22:23:00 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2017-05-25T22:23:00Z</dc:date>
    <item>
      <title>Register metadata table with subset of rows</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Register-metadata-table-with-subset-of-rows/m-p/361638#M10873</link>
      <description>&lt;P&gt;Suppose I have a source SAS dataset, can I&amp;nbsp;register the table but only have it include a subset of rows?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, using sashelp.class as a source dataset, register the table as ClassFemales and have the registered metadata table only have the rows for females in it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can I do that subsetting when I register the table?&amp;nbsp;&amp;nbsp;That is, can I &amp;nbsp;register sashelp.class(where=(sex='F'))&amp;nbsp; ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or would I need to use an infomap?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Big picture is I have a SAS dataset that will eventually feed prompts.&amp;nbsp; SAS dataset is like:&lt;/P&gt;
&lt;PRE&gt;Prompt    Value   Label
Prompt1   A         Pretty A
Prompt1   B         Pretty B
Prompt2   X         Pretty X Label
Prompt2   Y         Pretty Y Label
....&lt;/PRE&gt;
&lt;P&gt;So that one dataset defines selection options for several prompts.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My goal is to make a separate registered table for each prompt, to use as a dynamic lookup.&amp;nbsp; But I'm hoping not to split the OS dataset into n datasets, one for each prompt.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 15:18:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Register-metadata-table-with-subset-of-rows/m-p/361638#M10873</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2017-05-25T15:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Register metadata table with subset of rows</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Register-metadata-table-with-subset-of-rows/m-p/361796#M10876</link>
      <description>Not sure if I entirely understand your application.&lt;BR /&gt;You cannot enter a filter as such in a metadata object. You can do some dynamic filtering if you are using metabound libraries, but that is primarily target for row level access purposes.&lt;BR /&gt;It's sounds like you need views or infomaps for this.</description>
      <pubDate>Thu, 25 May 2017 22:23:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Register-metadata-table-with-subset-of-rows/m-p/361796#M10876</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-05-25T22:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Register metadata table with subset of rows</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Register-metadata-table-with-subset-of-rows/m-p/361955#M10879</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH&lt;/a&gt;.&amp;nbsp; General application is wanting to have a single SAS dataset that has the data to define the response options for a set of prompts.&amp;nbsp; Similar to how you can make&amp;nbsp;one CNTLIN dataset that defines a set of formats.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hadn't thought of using&amp;nbsp;permanent views.&amp;nbsp; Assuming I can register a view and then use it as a source for a prompt, that could work.&amp;nbsp; So I would have the data for all the prompts stored in one dataset.&amp;nbsp; Then would have a separate view for each prompt which subsets the data.&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 13:45:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Register-metadata-table-with-subset-of-rows/m-p/361955#M10879</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2017-05-26T13:45:29Z</dc:date>
    </item>
  </channel>
</rss>

