Creation execute file

Reply
Contributor
Posts: 23

Creation execute file

Hello, i would like to ask if i have a option in SAS to create execute file( .exe).

I know that in Matlab you have an option.

Thank you

Super User
Super User
Posts: 7,050

Re: Creation execute file

no

Contributor
Posts: 23

Re: Creation execute file

Thank you.

i have another question to you, can i operate SAS from other system automaticcally?

i will describe situation : my customer will enter my site, will put there his file, and will press button, this button will operate SAS program and then ther results will send to this customer by file.

can i do it? if yes, how can i operate SAS from site? thank you

Super Contributor
Posts: 644

Re: Creation execute file

How you do this depends on where your SAS executables are located.  If they are on a local machine that your customer has access to you can make a copy of the SAS icon and add the parameter -sysin='your_program_here.sas' to the startup script.  Alternately your button could use the amended script to launch the program in batch mode.  You would also need to redirect the log so any problems with the input data could be identified.

If your SAS resides an a server and typically you access it using Enterprise Guide then I would suggest creating a project containing a process flow that would analyse and output the customer data.

f you need more help you will have to describe your setup.

Richard

Contributor
Posts: 23

Re: Creation execute file

Posted in reply to RichardinOz

SAS reside on server and we don't have Enterprise Guide. Our customers have to upload a file with data to site and press button than SAS have to work and return the results by file. i don't know if we can do it and how can i operate SAS from site...

Super User
Posts: 5,430

Re: Creation execute file

This sounds like a job for a SAS Stored Process, but to use it you must have licensed a package that contains the SAS Integration Technologies component. What modules/products do you have on the server?

Data never sleeps
Contributor
Posts: 23

Re: Creation execute file

we have standard products, not something special.

but maybe can i operate SAS FROM DOS?

what is SAS Stored Process?

Super User
Posts: 5,430

Re: Creation execute file

A Stored Process (StP) is a SAS program, that can take arguments (prompts) and stream output (or other  things).

You need a SAS Metadata server to store the information about the StP, and a SAS Stored Process server to handle client access/requests. See the product pages on support.sas.com for more information.

You can start a SAS program in DOS, and use a program name as a parameter, see the SAS Companion for Windows on how to do that. But, I guess you want to do this via a web server? Or how else should the users access the "button"? Most web architects and security folks is not very keen on having we requests go directly to executables in the OS.

Data never sleeps
Contributor
Posts: 33

Re: Creation execute file

You can make a shell/bat that starts only if the file is present, the shell/bat stert a SAS session and execute sas program that has for input the file.

In other words: the customer load the file in the server,

The proces start, do what have to do, send by mail the result, delete the input file

Ask a Question
Discussion stats
  • 8 replies
  • 291 views
  • 0 likes
  • 5 in conversation