Solved

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

Posted on 2012-03-29
2
959 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

This is about my first experience with programming Arduino.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

820 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