BookmarkSubscribeRSS Feed
dpereira
Calcite | Level 5

Hey!

 

I have EG 4.2 projects that have some not so complex process flow. It is mostly to sync programs from different SAS servers we have in the company. I've been trying to automate those programs without the scheduler, since our computers disconnect from the servers after some time. I've been using the nohup to fix this. In order to sync the sas programs, I have them send an "ok" table via FTP so that the other program can start, but this seems rather sloppy.

 

I assume that the EG acts like an IDE would and send commands to the SAS server like the IDE sends to the compiler and creates all the links and compiles all the other codes and execute the main file. How does the EG translates a process flow to base sas? What would be the best way to do something like this?

 

Thanks for the help! 

5 REPLIES 5
ChrisNZ
Tourmaline | Level 20

EG only sends SAS code to the SAS server.

 

All the programs and the links between them are in the EG project, which is read on your PC by your EG session. The server knows nothing about them until EG sends code to run on the server.

 

Does this make sense?

dpereira
Calcite | Level 5

Yes, it does

 

I get that, the problem is that the connection to the SAS server can be lost. The EG has some logic to make the sync and order of the process flow to work. I'd like to emulate that without the EG, I'd like to send a nohup command directly to the SAS server to avoid losing that connection

ChrisNZ
Tourmaline | Level 20

> the problem is that the connection to the SAS server can be lost.

 

It shouldn't. Solve the underlying network issue.

 

> EG has some logic to make the sync and order of the process flow to work. I'd like to emulate that without the EG, I'd like to send a nohup command directly to the SAS server to avoid losing that connection

 

EG interacts with SAS servers via the SAS Integrated Object Model (IOM), a proprietary SAS communication protocol. You'll need a way to make the server (and EG) think that the line is up when it isn't. Not really an option imho.

 

Patrick
Opal | Level 21

SAS is a scripting language and there is no compile/link. EG just sends SAS code to the server for execution. The SAS server then compiles the script at run time (so it's "interpreted").

 

With EG under File/Export you can export all the code to a .sas file (a file containing SAS script). Move this generated code to the server and then schedule it server side like you would do with any other script. 

 

 

dpereira
Calcite | Level 5

I've just tried the export code solution, but it does not change servers, it runs all the codes on a single server (the one from the first code).

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 5 replies
  • 942 views
  • 0 likes
  • 3 in conversation