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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 2062 views
  • 0 likes
  • 3 in conversation