1

I'm trying to get the log file from submitting a SAS program using X command in EG.

My program runs fine but no log file is generated.

I've tried all these.

x sas "&basedir.simulation/run2003.sas " -log "&basedir.log/logrun.log" &;

x sas "&basedir.simulation/run2003.sas " -log "/pm/code/dev/log/logrun.log" &;

x sas "&basedir.simulation/run2003.sas " -log '/pm/code/dev/log/logrun.log' &;

2 Answers 2

1

Try:

x " sas &basedir.simulation/run2003.sas  -log '/pm/code/dev/log/logrun.log' &";

You could also try it in a Data Step and use call system()

data _null_;
format runme $200.;
runme = "sas &basedir.simulation/run2003.sas -log '/pm/code/dev/log/logrun.log'" || '&';
call system(runme);
run;
Sign up to request clarification or add additional context in comments.

Comments

0

I found out you have to use -altlog instead of -log.

This works.

x sas "&basedir.simulation/run2003.sas" -altlog "&basedir/log/log2003.log" &;

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.