<?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: SAS Metadata Export using script - Options example? in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Metadata-Export-using-script-Options-example/m-p/531361#M15529</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41119"&gt;@Lenvdb&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your objects has keywords defined, you can do something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/&amp;lt;SASHome&amp;gt;/SASPlatformObjectFramework/9.4/ExportPackage -user &amp;lt;USER&amp;gt; -password &amp;lt;PASSWORD&amp;gt; -host &amp;lt;HOST&amp;gt; -port &amp;lt;PORT&amp;gt; -package '/tmp/1.spk' -objects '/' -types 'Report' -keywords "Alex" "Sample"
INFO Current Time: January 30, 2019 8:20:29 AM EST
INFO User Name: sas
INFO Source Metadata Server: &amp;lt;HOST&amp;gt; (Port: 8561)
INFO Filtering on objects containing the following keywords: "Alex", "Sample"
INFO Filtering on the following object types: SAS report&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 30 Jan 2019 13:24:12 GMT</pubDate>
    <dc:creator>alexal</dc:creator>
    <dc:date>2019-01-30T13:24:12Z</dc:date>
    <item>
      <title>SAS Metadata Export using script - Options example?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Metadata-Export-using-script-Options-example/m-p/530581#M15508</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am looking for some examples on running this SAS Metadata Exportpackage script (in Linux) using the -name and -nameMatchType CONTAINS options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried doing this:&lt;/P&gt;
&lt;P&gt;opt/sas94/software/SASPlatformObjectFramework/ExportPackage -user $usr -password $pwd -host $sashost -port $sasport -name "$appnm" -nameMatchType CONTAINS "prod" -package "/myfolder/MyExport.spk" -disableX11 -log "/Myfolders/Logs/ExportLog.log";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But this returns an error about the use of the NameMatchType option...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone show me an example of how this option would work in the REAL WORLD? the SAS Manuals only show you the options as a guide with no real examples...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Len&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 10:57:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Metadata-Export-using-script-Options-example/m-p/530581#M15508</guid>
      <dc:creator>Lenvdb</dc:creator>
      <dc:date>2019-01-28T10:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Metadata Export using script - Options example?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Metadata-Export-using-script-Options-example/m-p/530938#M15513</link>
      <description>&lt;P&gt;Really?&lt;/P&gt;
&lt;P&gt;Anyone?&lt;/P&gt;
&lt;P&gt;I guess nobody has scripted their Metadata Exports ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 13:07:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Metadata-Export-using-script-Options-example/m-p/530938#M15513</guid>
      <dc:creator>Lenvdb</dc:creator>
      <dc:date>2019-01-29T13:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Metadata Export using script - Options example?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Metadata-Export-using-script-Options-example/m-p/530947#M15514</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41119"&gt;@Lenvdb&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;But this returns an error about the use of the NameMatchType option...&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Show me an error, please.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 13:26:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Metadata-Export-using-script-Options-example/m-p/530947#M15514</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2019-01-29T13:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Metadata Export using script - Options example?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Metadata-Export-using-script-Options-example/m-p/530970#M15515</link>
      <description>&lt;P&gt;This is my script that I run to execute the ExportPackage:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ScriptToRun.PNG" style="width: 1168px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26661i855C1C9FF871BAC5/image-dimensions/1168x37?v=v2" width="1168" height="37" role="button" title="ScriptToRun.PNG" alt="ScriptToRun.PNG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and this is the result - it pushes out the "help" for this command&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="The result...the help" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26662i1556B2F5013F66CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="ScriptResult.PNG" alt="The result...the help" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;The result...the help&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 13:54:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Metadata-Export-using-script-Options-example/m-p/530970#M15515</guid>
      <dc:creator>Lenvdb</dc:creator>
      <dc:date>2019-01-29T13:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Metadata Export using script - Options example?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Metadata-Export-using-script-Options-example/m-p/530975#M15516</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41119"&gt;@Lenvdb&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Are you sure that all variables, that you are using in command, were properly set?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 14:00:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Metadata-Export-using-script-Options-example/m-p/530975#M15516</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2019-01-29T14:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Metadata Export using script - Options example?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Metadata-Export-using-script-Options-example/m-p/530979#M15517</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41748"&gt;@alexal&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;The issue is that the -nameMatchType option is incorrect.&lt;/P&gt;
&lt;P&gt;I need to see HOW the option is set and how the value is set..&lt;/P&gt;
&lt;P&gt;I use the script without this option and it works, but we have no way to filter the required rows that are returned. At the moment I get everything. I am only interested in the rows containing 2 bits:&lt;/P&gt;
&lt;P&gt;"MKTG" and "PROD".&lt;/P&gt;
&lt;P&gt;All rows contain MKTG , but only some contain "PROD"&lt;/P&gt;
&lt;P&gt;I am hoping that the -nameMatchType with a CONTAINS and a value of "PROD" will help. But how do I specify this in my script?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 14:07:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Metadata-Export-using-script-Options-example/m-p/530979#M15517</guid>
      <dc:creator>Lenvdb</dc:creator>
      <dc:date>2019-01-29T14:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Metadata Export using script - Options example?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Metadata-Export-using-script-Options-example/m-p/530989#M15518</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41119"&gt;@Lenvdb&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a working example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/&amp;lt;SASHome&amp;gt;/SASPlatformObjectFramework/9.4/ExportPackage -user &amp;lt;USER&amp;gt; -password &amp;lt;PASSWORD&amp;gt; -host &amp;lt;HOST&amp;gt; -port 8561 -package '/tmp/1.spk' -objects '/' -types 'Report' -nameMatchType CONTAINS -name 'Test'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Export.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26664i73E65344BD97BCC4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Export.jpg" alt="Export.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On your screenshot, I do not see -types and you have specified -nameMatchType incorrectly.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 14:39:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Metadata-Export-using-script-Options-example/m-p/530989#M15518</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2019-01-29T14:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Metadata Export using script - Options example?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Metadata-Export-using-script-Options-example/m-p/530996#M15519</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41748"&gt;@alexal&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This working example shows me that I cannot use this option as I thought I would. The documentation from SAS did not explain and provided no working examples...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Len&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 14:55:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Metadata-Export-using-script-Options-example/m-p/530996#M15519</guid>
      <dc:creator>Lenvdb</dc:creator>
      <dc:date>2019-01-29T14:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Metadata Export using script - Options example?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Metadata-Export-using-script-Options-example/m-p/531352#M15527</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41748"&gt;@alexal&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just one more question -&lt;/P&gt;
&lt;P&gt;We have a large number of Group Names / ACTs with names like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MKTG_TEST_Campaign1_DEV.act&lt;/P&gt;
&lt;P&gt;MKTG_TEST_Campaign1_PROD.act&lt;/P&gt;
&lt;P&gt;MKTG_TEST_Campaign2_DEV.act&lt;/P&gt;
&lt;P&gt;MKTG_TEST_Campaign2_PROD.act&lt;/P&gt;
&lt;P&gt;ACT_TEST_Campaign1_DEV.act&lt;/P&gt;
&lt;P&gt;ACT_TEST_Campaign1_PROD.act&lt;/P&gt;
&lt;P&gt;ACT_TEST_Campaign2_DEV.act&lt;/P&gt;
&lt;P&gt;ACT_TEST_Campaign2_PROD.act&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actuarials and Marketing are 2 Tenants on our platform, so they each require their own Backup and recovery to DR.&lt;/P&gt;
&lt;P&gt;I need to write a script for Marketing to pick all their PROD act's:&lt;/P&gt;
&lt;P&gt;If I use the -nameMatchType CONTAINS -name ===how can I specify that I need ACTs with both these - similar to a SQL query where name contains("MKTG",PROD")&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so it should pick only:&lt;/P&gt;
&lt;P&gt;MKTG_TEST_Campaign1_PROD.act&lt;/P&gt;
&lt;P&gt;MKTG_TEST_Campaign2_PROD.act&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this at all doable in this tool?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best rgds&lt;/P&gt;
&lt;P&gt;Len&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 12:54:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Metadata-Export-using-script-Options-example/m-p/531352#M15527</guid>
      <dc:creator>Lenvdb</dc:creator>
      <dc:date>2019-01-30T12:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Metadata Export using script - Options example?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Metadata-Export-using-script-Options-example/m-p/531361#M15529</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41119"&gt;@Lenvdb&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your objects has keywords defined, you can do something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/&amp;lt;SASHome&amp;gt;/SASPlatformObjectFramework/9.4/ExportPackage -user &amp;lt;USER&amp;gt; -password &amp;lt;PASSWORD&amp;gt; -host &amp;lt;HOST&amp;gt; -port &amp;lt;PORT&amp;gt; -package '/tmp/1.spk' -objects '/' -types 'Report' -keywords "Alex" "Sample"
INFO Current Time: January 30, 2019 8:20:29 AM EST
INFO User Name: sas
INFO Source Metadata Server: &amp;lt;HOST&amp;gt; (Port: 8561)
INFO Filtering on objects containing the following keywords: "Alex", "Sample"
INFO Filtering on the following object types: SAS report&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Jan 2019 13:24:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Metadata-Export-using-script-Options-example/m-p/531361#M15529</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2019-01-30T13:24:12Z</dc:date>
    </item>
  </channel>
</rss>

