[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Shell Script thru SAS Code

Posted on 2011-05-09
1
Medium Priority
?
697 Views
Last Modified: 2013-11-16
I need to trigger a shell script which directs the output to a different location using SAS Code.

I am using ----filename a 'nohup /sas/*******/sample.sh &' ---- but not able to trigger the code.

Can any one please help me on this.

Appreciate your help. Thanks.
0
Comment
Question by:aruku
1 Comment
 
LVL 7

Accepted Solution

by:
d507201 earned 2000 total points
ID: 35725063
Try using the X-command.

X 'nohup /sas/*******/sample.sh &';


Here's the way we do it for one of our SAS/AF apps.  The user selects a specific application (_app)  and task (_prog) so those are captured as macro variables.  Other specifications are captured and swapped into the program as macro variables.  SAS is in the path so we don't need to specify the path to it.

 x "nohup sas -sysparm &_server -unbuflog &_progDir/&_app.&_prog                                                                                                                  
            -log &_logDir/&_app.&_prog..log                                                                                                                                                    
            -print &_listDir/&_app.&_prog..lst & ";      
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In today's business world, data is more important than ever for informing marketing campaigns. Accessing and using data, however, may not come naturally to some creative marketing professionals. Here are four tips for adapting to wield data for insi…
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question