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 For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!
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

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register 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
  • 3144 views
  • 0 likes
  • 5 in conversation