BookmarkSubscribeRSS Feed
rush_milo
Obsidian | Level 7

Hi,

I have a question on scheduling in SAS EG. I'm given a task to schedule a program.

My question is, instead of schedulling the whole program, is it possible to schedule the output as well?

Say, the program has been run and produces an output, e.g Dataset_A and I want to export Dataset_A in Excel format to a particular folder/location in C: drive, how can I do that in SAS EG? Reason being is I see the schedule options are very limited and high level. From what I see, it runs the whole thing instead of assigning particular tasks.

Appreciate anyone's assistance in this because I just started to use SAS 4 months ago and I'm practically a trainee. Thank you!

4 REPLIES 4
rush_milo
Obsidian | Level 7

Hi,

I think I've found the answer to that. I can use Proc Export I believe.

Now, my other question is, it is possible to write a code to change the server? Because at my workplace, some codes have to be run under a different server.

Hope my question makes sense. Thank you!

Kurt_Bremser
Super User

Could you be more specific?

You see, code runs ON a server, so it can't magically hop from one server to another. That would be equivalent to your Windows desktop suddenly appearing on a computer at the other end of the office.

SASKiwi
PROC Star

So is it definitely a SAS program you need to schedule and not an EG project? Do you use EG with a local SAS server (on your PC) or a remote server?

The difficulty of exporting to your C: drive from EG if you use a remote server is that SAS programs run remotely and hence cannot link to your C: drive.

If you use a local SAS server then there should be no problem - you can use the EXPORT procedure or the ODS EXCELXP tagset to write an Excel spreadsheet to your C: drive.

Kurt_Bremser
Super User

The most important thing to know is the layout of your SAS installation, epecially where the workspace server is located (local, remote, if remote, which operating system).

And what environment for scheduling is available and must be used according to organization policies.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 4 replies
  • 1403 views
  • 0 likes
  • 3 in conversation