Solved

How to run SAS from Unix bash shell script and then create a log file?

Posted on 2012-03-29
2
947 Views
Last Modified: 2012-08-14
Is this a proper way to run/execute a SAS program and then direct or create a SAS log??

mydir=/start/dir
plog=/start/log
filename=sasprog1.log
sas=/products/SAS/SASFoundation/9.2/sas

$sas <$mydir/sasprog1.sas> $plog/$filename     

Open in new window


Currently nothing happens when I execute/run my SAS program. No log file is created, but from the examples that I read before this should be working.

Any takers?
0
Comment
Question by:labradorchik
2 Comments
 
LVL 48

Accepted Solution

by:
Tintin earned 500 total points
ID: 37784937
$sas <$mydir/sasprog1.sas> $plog/$filename  

Open in new window


should be


$sas $mydir/sasprog1.sas >$plog/$filename  

Open in new window

0
 

Author Comment

by:labradorchik
ID: 37787350
Thank you very much for your help! I will try your way!!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access_log 17 101
Copying MS SQL database does not copy default balues or identity specificatio 3 49
DBF to ... Converter 5 49
Advice in Xamarin 21 57
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

863 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now