cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
New to using JMP? Hit the ground running with the Early User Edition of Discovery Summit. Register now, free of charge.
Register for our Discovery Summit 2024 conference, Oct. 21-24, where you’ll learn, connect, and be inspired.
Choose Language Hide Translation Bar
DIVIDESbyZER0
Level III

Why does Clear Log(), also prevent anything after it from being printed in the log?

Why does Clear Log(), also prevent anything after it from being printed in the log?

We are trying to pull a log file for each execution of the script.  There is a clear log() at the top of a script, and a save log() at the end.  For some reason when the clear log() is run, this prevents anything from being saved into the log file.

1 REPLY 1
StarfruitBob
Level VI

Re: Why does Clear Log(), also prevent anything after it from being printed in the log?

With this script I was able to save a log. Have you defined a location to save the log as an argument to save log()?

 

names default to here(1);
clear log();

print( "test" );

save log( "$DESKTOP/log.txt" );
Learning every day!