<?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 Compile a SAS Program that can Generate an Entire Directory of Content in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Compile-a-SAS-Program-that-can-Generate-an-Entire-Directory-of/m-p/842467#M6206</link>
    <description>&lt;P&gt;Have you ever needed to deploy some files to a SAS server as part of an implementation, promotion, or project activity?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Usually this involves some manual steps, ssh, ftp, drag &amp;amp; drop, robocopy, zipping / unzipping etc etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Well - there is now "one more" trick for your toolbox!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Syntax:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;`sasjs fs compile /source/folder --output myprogram.sas`&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Simply &lt;A href="https://cli.sasjs.io/installation/" target="_self"&gt;install&lt;/A&gt; the sasjs cli and execute the command above - switching "/source/folder" for your target (local) directory, and "myprogram.sas" for the full path to the (local) SAS program you'd like to generate.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;This generated program will contain the ENTIRE folder - including subfolders and binary files such as datasets, zip files, excel etc.&amp;nbsp; You do NOT need to have SAS on your local machine - because the compilation is done using JavaScript.&lt;BR /&gt;&lt;BR /&gt;Once you have compiled the program, you can run it in anywhere in SAS to deploy it - just set the `fsTarget` macro variable to your chosen target directory.&amp;nbsp; All the subfolders will be created, along with exact copies of each file.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Docs:&amp;nbsp;&amp;nbsp;&lt;A href="https://cli.sasjs.io/fs/" target="_blank" rel="noopener"&gt;https://cli.sasjs.io/fs/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Marking this one as "no solution needed", as it's rather a solution in and of itself!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Nov 2022 10:14:13 GMT</pubDate>
    <dc:creator>AllanBowe</dc:creator>
    <dc:date>2022-11-04T10:14:13Z</dc:date>
    <item>
      <title>Compile a SAS Program that can Generate an Entire Directory of Content</title>
      <link>https://communities.sas.com/t5/Developers/Compile-a-SAS-Program-that-can-Generate-an-Entire-Directory-of/m-p/842467#M6206</link>
      <description>&lt;P&gt;Have you ever needed to deploy some files to a SAS server as part of an implementation, promotion, or project activity?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Usually this involves some manual steps, ssh, ftp, drag &amp;amp; drop, robocopy, zipping / unzipping etc etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Well - there is now "one more" trick for your toolbox!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Syntax:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;`sasjs fs compile /source/folder --output myprogram.sas`&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Simply &lt;A href="https://cli.sasjs.io/installation/" target="_self"&gt;install&lt;/A&gt; the sasjs cli and execute the command above - switching "/source/folder" for your target (local) directory, and "myprogram.sas" for the full path to the (local) SAS program you'd like to generate.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;This generated program will contain the ENTIRE folder - including subfolders and binary files such as datasets, zip files, excel etc.&amp;nbsp; You do NOT need to have SAS on your local machine - because the compilation is done using JavaScript.&lt;BR /&gt;&lt;BR /&gt;Once you have compiled the program, you can run it in anywhere in SAS to deploy it - just set the `fsTarget` macro variable to your chosen target directory.&amp;nbsp; All the subfolders will be created, along with exact copies of each file.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Docs:&amp;nbsp;&amp;nbsp;&lt;A href="https://cli.sasjs.io/fs/" target="_blank" rel="noopener"&gt;https://cli.sasjs.io/fs/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Marking this one as "no solution needed", as it's rather a solution in and of itself!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 10:14:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Compile-a-SAS-Program-that-can-Generate-an-Entire-Directory-of/m-p/842467#M6206</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2022-11-04T10:14:13Z</dc:date>
    </item>
  </channel>
</rss>

