<?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: Automating SAS Package Exports in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Automating-SAS-Package-Exports/m-p/427924#M11904</link>
    <description>Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/86186"&gt;@egwilliamson&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;You can use the Batch Import tool from command line of server as well. Just that it can be very long depending upon the Number of objects you have for export.&lt;BR /&gt;&lt;BR /&gt;You can find more details about the syntax and procedure on the SAS Intelligence Platform system admin guide chapter "Using the Batch Export and Import tools".&lt;BR /&gt;&lt;BR /&gt;Hope this helps.</description>
    <pubDate>Tue, 16 Jan 2018 06:36:57 GMT</pubDate>
    <dc:creator>AnandVyas</dc:creator>
    <dc:date>2018-01-16T06:36:57Z</dc:date>
    <item>
      <title>Automating SAS Package Exports</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Automating-SAS-Package-Exports/m-p/427229#M11877</link>
      <description>&lt;P&gt;I am currently looking for a way to automate the capturing of a SAS Package (at the SASFolders level), to perform regularly schedule backups/exports of the SAS VA materials that we have generated. I have done little research that points to using the SAS Batch Export &amp;amp; Import tool...is this where I am needing to start? Does anyone have any experience using this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 15:55:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Automating-SAS-Package-Exports/m-p/427229#M11877</guid>
      <dc:creator>egwilliamson</dc:creator>
      <dc:date>2018-01-12T15:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Automating SAS Package Exports</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Automating-SAS-Package-Exports/m-p/427258#M11878</link>
      <description>&lt;P&gt;Yes, the batch export tools are what you need.&amp;nbsp; So long as you have X command enabled, you can export from SAS.&amp;nbsp; I previously made a stackoverflow&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/32206241/sas-programmatically-export-metadata-object-spks/40526783#40526783" target="_self"&gt;post&lt;/A&gt; for&amp;nbsp;exporting items individually (rather than at folder level),&amp;nbsp;I've just quickly modified it to suit your needs..&amp;nbsp; Please note - this code is untested!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let connx_string= -host YOURHOST -port 8561 -user YOURUSER -password YOURPASS;&lt;BR /&gt;
options noquotelenmax;&lt;BR /&gt;
/* get location of BatchExport metadata tool */
/*http://support.sas.com/documentation/cdl/en/bisag/64088
     /HTML/default/viewer.htm#a003261084.htm*/
data _null_;
   h="%sysget(SASROOT)";
   h2=substr(h,1,index(h,"SASFoundation")-2);
   call symputx("platform_object_path"
    ,cats(h2,"/SASPlatformObjectFramework/&amp;amp;sysver"));
run;
%put Batch tool located at: &amp;amp;platform_object_path;

    data _null_;
      infile "C: &amp;amp; cd ""&amp;amp;platform_object_path"" %trim(
        ) &amp;amp; ExportPackage &amp;amp;connx_string %trim(
        )-package ""/location/to/save/your.spk"" %trim(
        )-objects ""/your/sas/meta/path"" %trim(
        )-log ""/location/to/save/your.log"" 2&amp;gt;&amp;amp;1" 
        pipe lrecl=1000;
      input; 
      list;
    run;
&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the link to the&amp;nbsp;&lt;A href="http://documentation.sas.com/?docsetId=bisag&amp;amp;docsetTarget=n008xsxs34mvcwn1qrgcmugpzu6i.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;documentation&lt;/A&gt;.&amp;nbsp; Be aware that if you are on windows, and you are going to use this approach to build a very long command, there is a weird bug (not a SAS bug) that will somehow remove one of your characters!&amp;nbsp; See &lt;A href="https://stackoverflow.com/questions/30592523/sas-exportpackage-command-exceeds-8191-characters" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 16:49:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Automating-SAS-Package-Exports/m-p/427258#M11878</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2018-01-12T16:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Automating SAS Package Exports</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Automating-SAS-Package-Exports/m-p/427924#M11904</link>
      <description>Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/86186"&gt;@egwilliamson&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;You can use the Batch Import tool from command line of server as well. Just that it can be very long depending upon the Number of objects you have for export.&lt;BR /&gt;&lt;BR /&gt;You can find more details about the syntax and procedure on the SAS Intelligence Platform system admin guide chapter "Using the Batch Export and Import tools".&lt;BR /&gt;&lt;BR /&gt;Hope this helps.</description>
      <pubDate>Tue, 16 Jan 2018 06:36:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Automating-SAS-Package-Exports/m-p/427924#M11904</guid>
      <dc:creator>AnandVyas</dc:creator>
      <dc:date>2018-01-16T06:36:57Z</dc:date>
    </item>
  </channel>
</rss>

