Solved

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

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

This is about my first experience with programming Arduino.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…

773 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