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
It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
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-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
  • 5 replies
  • 2274 views
  • 0 likes
  • 5 in conversation