BookmarkSubscribeRSS Feed
LS
Calcite | Level 5 LS
Calcite | Level 5
Hi,
I am running EG on AIX. From within a "Program" in EG I can run UNIX commands such as
x 'mkdir xxxx' , x "\rm file.txt' , etc..
Is there a way to run a .ksh script the same way I run the commands above?

Thank you
5 REPLIES 5
Patrick
Opal | Level 21
Yes it is.
Why don't you just try?
LS
Calcite | Level 5 LS
Calcite | Level 5
Hi Patrick,

Actually I have tried it before.
I may be missing something but, here is what I did -->
X 'cd'; (where my customer4.ksh script is)
X 'customer4.ksh'; (intended to trigger the execution of the script)

This is the script -->

#! /usr/bin/ksh
sas -work /sasdata/bicoc_work01 -log ./ -sysin ./procsetinit.sas

From a command line in SSH, the script runs fine.

Thank you for your help,

Luiz
ChrisHemedinger
Community Manager
See this topic:

http://blogs.sas.com/sasdummy/index.php?/archives/136-Using-the-X-and-SYSTASK-commands-from-SAS-Ente...

Chris
SAS Innovate 2025: Call for Content! Submit your proposals before Sept 25. Accepted presenters get amazing perks to attend the conference!
TimB_SAS
SAS Employee
Assuming you're able to use X to submit OS commands from SAS, you should be able to use:

x '/full/path/to/customer4.ksh' ;

without needing to use the cd command at all.
darrylovia
Quartz | Level 8
Hello
Generally in EG system shell commands are turned off. Following this thread for details.

http://support.sas.com/forums/message.jspa?messageID=41152#41152

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 5 replies
  • 2555 views
  • 0 likes
  • 5 in conversation