Solved

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

Posted on 2012-03-29
2
967 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Get Database Help Now w/ Support & Database Audit

Keeping your database environment tuned, optimized and high-performance is key to achieving business goals. If your database goes down, so does your business. Percona experts have a long history of helping enterprises ensure their databases are running smoothly.

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
Recently I was talking with Tim Sharp, one of my colleagues from our Technical Account Manager team about MongoDB’s scalability. While doing some quick training with some of the Percona team, Tim brought something to my attention...
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

710 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