DATA Step, Macro, Functions and more

how to upload and run sas script program in sas studio?

Reply
Occasional Contributor
Posts: 6

how to upload and run sas script program in sas studio?

I tried the SAS program using in SAS studio through SAS on demand.

 

rsubmit;
ancova.sas rlink'/home/ANCOVA.sas';
   proc download infile=rhost outfile=lhost;
   run;
endrsubmit;

 

But the result is error. How can I fix it?

SAS Super FREQ
Posts: 8,743

Re: how to upload and run sas script program in sas studio?

Hi:
This is a question for Tech Support. I am not sure you can use RSUBMIT/ENDRSUBMIT using SAS Studio, because it will depend on what other SAS components you have installed on your server.

There is a batch submit procedure for SAS Studio: http://support.sas.com/software/products/sasstudio/ but it is different than RSUBMIT.

To use RSUBMIT, you need SAS CONNECT configured http://support.sas.com/documentation/cdl/en/connref/67933/HTML/default/viewer.htm#p1eyablk3vvdlkn1h5... and if you do not have that on the server, then your RSUBMIT can't work.

cynthia
Super User
Posts: 5,256

Re: how to upload and run sas script program in sas studio?

Lot's of errors in the syntax I guess.

There are plenty of examples in the SAS/CONNECT documentation.

One hint: you probably want to assign rlink using the FILENAME statement. And that prior to the RSUBMIT (and the also missing SIGNON).

Data never sleeps
Super User
Posts: 3,106

Re: how to upload and run sas script program in sas studio?

[ Edited ]

Unless I'm mistaken your program suggests that you are trying to CONNECT to a third-party SAS server from SAS on Demand. As @Cynthia_sas has already mentioned, I doubt this would be allowed as for starters it would create all sorts of security implications.

 

One check you can do is confirm if SAS/CONNECT is licensed or not. Run proc setinit; run;

 

You can only use SAS/CONNECT if it is listed in the log as licensed.  

Super User
Posts: 17,829

Re: how to upload and run sas script program in sas studio?

I don't think that method will works with Academics On Demand.

 

You can open the .sas file and then copy and paste the code into the browser and execute the code.

 

You could also upload the file to your workspace (manually) by clicking file upload and then open it there and run it as well. 

 

 

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