BookmarkSubscribeRSS Feed
RobW
Calcite | Level 5
OK...quick run-down of what I am trying to do:

Code node in EG project...using an EG project for the scheduling capabilities...

Code does:
PIPE to a folder
Data step to create dataset of folder metadata attributes (particularly looking at one file in the folder)
Parse out the Create Date of file of interest.
Compare that date to sysdate using a macro.
If no match, program sleeps and rechecks for date match using do loop before continuing to the actual meat of the program.

Of course I now realize through research that this fails at the beginning because you can't use PIPE in EG. Is there any coding alternatives other than changing the EG config (or anything of that nature)?

Other info:
SAS EG running locally only. No SAS server...yet. Hoping to get it soon.

Thanks in advance.
3 REPLIES 3
deleted_user
Not applicable
windows API may be effective when you are "local", but what about on the server? Would that be "windows" too?

PeterC

good examples at http://devenezia.com/downloads/sas/sascbtbl/ . Message was edited by: Peter_c
mgst170
SAS Employee
You can run pipe and x commands through EG.

There are a number of ways in which this can be done, but as you are running local EG, here is the solution you need:

Go to Start and type regedit

Navigate to HKEY_CLASSES_ROOT\CLSID\{440196D4-90F0-11D0-9F41-00A024BB830C}\LocalServer32

Here you will see the sas command used to start your local workspace server session. In this command, replace the -noxcmd with -xcmd.

Restart EG.

Easiest way to check is to run proc options and check xcmd is now set.

Cheers.
RobW
Calcite | Level 5
mgst170:

Thanks for posting that...worked like a charm.

rmw

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