Solved

Running a sas program from the executable version

Posted on 2013-12-13
2
662 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
understanding output of mysql version 2 60
#deleted rowsc access 2010 backend 4 55
Pivot not using aggregate yield error 3 53
append to an ms access field 6 33
Creating and Managing Databases with phpMyAdmin in cPanel.
As technology users and professionals, we’re always learning. Our universal interest in advancing our knowledge of the trade is unmatched by most industries. It’s a curiosity that makes sense, given the climate of change. Within that, there lies a…
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…

776 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