<?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: How to packup a SAS program in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-packup-a-SAS-program/m-p/390112#M66103</link>
    <description>&lt;P&gt;Hi Mike_Davis,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Was your issue solved. I'm facing a similiar issue - to create an executable file without showing the contents of the code.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Aug 2017 05:19:17 GMT</pubDate>
    <dc:creator>Analyst_Amulya</dc:creator>
    <dc:date>2017-08-23T05:19:17Z</dc:date>
    <item>
      <title>How to packup a SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-packup-a-SAS-program/m-p/99043#M27840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am use SAS base,and I have a SAS program named "mysascode.sas",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder is that possible to create&amp;nbsp; an executable file (its name is "mysascode.exe"(file's extension is&lt;STRONG&gt; .EXE&lt;/STRONG&gt;)) from this SAS code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when I run the &lt;STRONG&gt;.EXE &lt;/STRONG&gt;file it will has the same functionality as I open SAS console and run "mysascode.sas",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the difference is the &lt;STRONG&gt;.EXE file &lt;/STRONG&gt;will not show the content of the SAS code(&lt;SPAN style="text-decoration: underline;"&gt;hide the code&lt;/SPAN&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2012 19:11:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-packup-a-SAS-program/m-p/99043#M27840</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-08-20T19:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to packup a SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-packup-a-SAS-program/m-p/99044#M27841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't hide code.&amp;nbsp; This is SAS programming not espionage.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2012 19:15:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-packup-a-SAS-program/m-p/99044#M27841</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2012-08-20T19:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to packup a SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-packup-a-SAS-program/m-p/99045#M27842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My guess is you are comparing SAS to a "compile and run separately" language like Visual BASIC. SAS is an interpretive language where compilation if necessary and execution take place at the same time when a program is run. You can compile DATA steps individually (check out the documentation) but in my experience this is not widely used as there are few benefits as well as disadvantages. FYI SAS procedures are already partly compiled processes to which you pass parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main reason for packaging SAS would be to make it easier to distribute pre-built SAS applications that cannot be changed - SAS tends not to be used this way and in any case the SAS architecture doesn't lend itself to this type of approach. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2012 20:37:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-packup-a-SAS-program/m-p/99045#M27842</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2012-08-20T20:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to packup a SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-packup-a-SAS-program/m-p/99046#M27843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A workaround is using .bat file if your OS is WIN, while using .sh if your OS is UNIX . including the following code in it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c:\sas9.2\sas.exe -sysin c:\temp\mycode.sas &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Double click this .bat file .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2012 02:54:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-packup-a-SAS-program/m-p/99046#M27843</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-08-21T02:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to packup a SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-packup-a-SAS-program/m-p/99047#M27844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe OP wanted something different: 1) standalone executable ( without SAS) 2.Code is encrypted after compilation. Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2012 03:04:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-packup-a-SAS-program/m-p/99047#M27844</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2012-08-21T03:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to packup a SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-packup-a-SAS-program/m-p/99048#M27845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Haikuo,&lt;/P&gt;&lt;P&gt;I want to do something like the second ,I have some calculation part of SAS code don't want to be show up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2012 17:24:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-packup-a-SAS-program/m-p/99048#M27845</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-08-21T17:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to packup a SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-packup-a-SAS-program/m-p/99049#M27846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case there are options you can explore:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) If your code is just in a DATA step then you can compile the code and just supply/use the compiled program without the source code like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 10pt;"&gt;The first DATA step produces a stored compiled program named STORED.SALESFIG:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 19.5pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: #333333; font-size: 10pt;"&gt;libname in '&lt;EM&gt;SAS-library-1&lt;/EM&gt; ';&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 19.5pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: #333333; font-size: 10pt;"&gt;libname stored '&lt;EM&gt;SAS-library-2&lt;/EM&gt; ';&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 19.5pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: #333333; font-size: 10pt;"&gt;data salesdata / pgm=stored.salesfig;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 19.5pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: #333333; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; set in.sales;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 19.5pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: #333333; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; qtr1tot=jan+feb+mar;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 19.5pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: #333333; font-size: 10pt;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 19.5pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 10pt;"&gt;SAS creates the data set SALESDATA when it executes the stored compiled program STORED.SALESFIG.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 19.5pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: #333333; font-size: 10pt;"&gt;data pgm=stored.salesfig;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 19.5pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: #333333; font-size: 10pt;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 19.5pt;"&gt; &lt;/P&gt;&lt;P&gt;2) If your program consists of more than DATA steps you can store the entire program in a SAS macro, compile the macro and supply/use the compiled macro only without the source code. Check the SAS macro documentation for this approach. You may have to add SAS options like NOSOURCE to avoid SAS statements appearing in the log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) One other option would be to use SAS/AF if you have it licensed and put your SAS program into a compiled SCL program, controlling what shows in your log with NOSOURCE. I just mention this for completeness, as I wouldn't recommend learning SAS/AF and SCL just for this one problem. The learning curve is pretty steep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2012 20:20:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-packup-a-SAS-program/m-p/99049#M27846</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2012-08-21T20:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to packup a SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-packup-a-SAS-program/m-p/99050#M27847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to agree with data _null_, all things considered what is the actual benefit of hiding the SAS program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you really need to then one way is to execute the code via Java, .net etc. and create an executable for that.&amp;nbsp; Look for support documentation for Integration Technologies which have a number of cookbooks on the subject.&amp;nbsp; In java, at it's most simplest, using exec() would work.&amp;nbsp; A better scenario is to utilise the iom and workspace providers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 12:19:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-packup-a-SAS-program/m-p/99050#M27847</guid>
      <dc:creator>CameronLawson</dc:creator>
      <dc:date>2012-08-23T12:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to packup a SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-packup-a-SAS-program/m-p/99051#M27848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with data _null_&amp;nbsp;&amp;nbsp; - but let's assume you really need to hide the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a secure option for macro compilation &lt;A class="active_link" href="http://support.sas.com/techsup/technote/ts739.pdf" title="http://support.sas.com/techsup/technote/ts739.pdf"&gt;http://support.sas.com/techsup/technote/ts739.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"I have some calculation part of SAS code don't want to be show up."&lt;/P&gt;&lt;P&gt;Eventually creating your own functions with PROC FCMP would give you what you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 12:34:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-packup-a-SAS-program/m-p/99051#M27848</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2012-08-23T12:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to packup a SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-packup-a-SAS-program/m-p/99052#M27849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I have done when I needed to use small SAS programming inside of operating system script is use the -STDIO option and embed the SAS code in the script.&amp;nbsp; You could probably figure out how to do something similar in a compiled language like C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;gt; more runsas&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;sas -noautoexec -noterminal -stdio &amp;lt;&amp;lt;ENDCODE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;proc print data=sashelp.class ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ENDCODE&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 16:10:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-packup-a-SAS-program/m-p/99052#M27849</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-08-23T16:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to packup a SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-packup-a-SAS-program/m-p/390112#M66103</link>
      <description>&lt;P&gt;Hi Mike_Davis,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Was your issue solved. I'm facing a similiar issue - to create an executable file without showing the contents of the code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 05:19:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-packup-a-SAS-program/m-p/390112#M66103</guid>
      <dc:creator>Analyst_Amulya</dc:creator>
      <dc:date>2017-08-23T05:19:17Z</dc:date>
    </item>
  </channel>
</rss>

