Solved

Running a sas program from the executable version

Posted on 2013-12-13
2
635 Views
Last Modified: 2013-12-17
Experts,

I have a SAS  program that I run.  I would like for someone else to be able to run the program from an executable version and not have access to the code.

What is the procedure to do this?
0
Comment
Question by:morinia
2 Comments
 
LVL 9

Expert Comment

by:bradanelson
ID: 39717543
The other user will need access to the code one way or another. I'm not aware of the ability to compile SAS programs into a non-readable version. You can create a script or some other program that the other user will see and exectue. Inside the script or 3rd party program, it would trigger the program to run. Depending on platform and other available tools, this solution would vary.

Sorry, it's not the most straight forward answer, but SAS is not setup to hide code easily.

You can look into creating SAS macro catalogs to hide certain parts of a program.
0
 
LVL 14

Accepted Solution

by:
Aloysius Low earned 500 total points
ID: 39718261
you can write the sas code into a macro and compile into a catalog using the store option:

%macro myfiles / store;
  [sas codes]
%mend;

doing the above allows you to use the compiled macro within the same SAS session... to allow it to be stored permanently, and across different machines (assuming you are doing this for distribution), you need need to copy the file from the work directory - it should be with a sasmacr extension (can't quite remember - haven't done this for a long time).

note that you cannot use the stored compiled macro on another OS. you'll need to copy the code to the destination OS to recompile

for more information, look up http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#a001328775.htm or search for "Saving Macros Using the Stored Compiled Macro Facility" under the Macro Language documentation.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Introduction: Often, when running a query with joins, the results show up "duplicates", and often, those duplicates can be "eliminated" in the results using DISTINCT, for example. Using DISTINCT is simple: just add it after the SELECT keyword, an…
SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now