Yes, the batch export tools are what you need. So long as you have X command enabled, you can export from SAS. I previously made a stackoverflow post for exporting items individually (rather than at folder level), I've just quickly modified it to suit your needs.. Please note - this code is untested!
%let connx_string= -host YOURHOST -port 8561 -user YOURUSER -password YOURPASS;
options noquotelenmax;
/* 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/&sysver"));
run;
%put Batch tool located at: &platform_object_path;
data _null_;
infile "C: & cd ""&platform_object_path"" %trim(
) & ExportPackage &connx_string %trim(
)-package ""/location/to/save/your.spk"" %trim(
)-objects ""/your/sas/meta/path"" %trim(
)-log ""/location/to/save/your.log"" 2>&1"
pipe lrecl=1000;
input;
list;
run;
Here is the link to the documentation. 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! See here.
/Allan
SAS Challenges - SASensei
MacroCore library for app developers
SAS networking events (BeLux, Germany, UK&I)Data Workflows, Data Contracts, Data Lineage, Drag & drop excel EUCs to SAS 9 & Viya -
Data ControllerDevOps and AppDev on SAS 9 / Viya / Base SAS -
SASjs