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
Become an Explorer! Join SAS Analytics Explorers to learn and complete challenges that earn rewards!
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

Catch up on SAS Innovate 2026

Dive into keynotes, announcements and breakthroughs on demand.

Explore Now →
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
  • 5 replies
  • 4220 views
  • 0 likes
  • 5 in conversation