Help using Base SAS procedures

Can someone please help?

Reply
Contributor
Posts: 40

Can someone please help?

Hello,

I want to run a sas program connecting remotely to a remote server meaning sas program that exists on a remote server.

can this be possible?

I am thinking to use filename ftp command to connect. But then to run a SAS program after connecting to it, can we use X unix command to execute sas program.

And one more thing is all this needs to be called in a sas program from current server. Please let me know.

thanks in advance!!

Super User
Posts: 9,775

Can someone please help?

You want to run this code at Remote SAS Server or at local PC ?

Which connecting way  you have connect with Remote SAS Server?

SAS/Connect ?

SAS/Share?

SAS/Integrated Technology?

Ksharp

PROC Star
Posts: 7,417

Can someone please help?

Some more questions.  How would you connect to this server if you weren't using SAS?  And, does only the program exist on the remote server, or does the data the program accesses also reside on the remote server?

Contributor
Posts: 40

Can someone please help?

I want to access remote server using SAS in filename ftp command. And then once remote server got connected, there are some datasets in a libary and I have a program on remote server to access those datasets and are downloaded to one of directories on remote server. So my question was - once we get connected to remote server, how can I run that SAS program ?

thanks in advance for help.

Super User
Posts: 9,775

Can someone please help?

using SAS in filename ftp command.

is only a way to connect to ftp server not SAS server.

If you want to run this code at Remote SAS Server, you must have Product:

SAS/Connect ?

SAS/Share?

SAS/Integrated Technology?

Or If you can telnet SAS Server ,then can use batch mode to run SAS code.

Ksharp

Contributor
Posts: 40

Can someone please help?

hi Ksharp!!,

Would you please post an example on how to use batch mode to run SAS Code ?

thanks,

sasbase

Super User
Posts: 5,320

Can someone please help?

You can find this information in the Companion for UNIX environments documentation.

/Linus

Data never sleeps
Super User
Posts: 5,320

Can someone please help?

So do you have a server with SAS data and SAS programs, but with no SAS server?

Or do you, but you don't have SAS/CONNECT, and try to mimic this by using filename ftp...???

If you can map the directories where your programs and data reside, you can execute directly on your local SAS session.

/Linus

Data never sleeps
Super User
Posts: 9,775

Can someone please help?

Assuming your SAS Server is under UNIX/AIX.

Use username sas to telnet SAS Server

Enter SAS Install directory like: /sas/SAS/9.2/SASFoundation/bin

Use vi or emacs to edit SAS code and save as a .sas file

input the following at command line:

sas -sysin /home/test.sas -log /home/test.log

As LinusH suggested, You should check the companion of UNIX to find more information.

Ksharp

Ask a Question
Discussion stats
  • 8 replies
  • 185 views
  • 0 likes
  • 4 in conversation