Thread: Problem using $KEYS in a macro

Started: 2007-06-01 23:54:10
Last activity: 2007-06-01 23:54:10
Topics: SAC Help
2007-06-01 23:54:10
I'm trying to use the $KEYS option described on the SAC website under the User's
Manual: SAC Macros section; however, I can't seem to get the command to work

I call the macro using
sac> macro macroname FILES filename STATS station_code
where macroname is the name of the macro, filename is the sac file, and
station_code is the 3 or 4 letter station code which is used to name an output
file from the macro.
The first line of the macro is
however, when I run the macro, it queries me for the file name, and uses an
empty string for the station code. It appears that it is not even seeing the
$KEYS line. Is there some trick to make this work, or is my syntax incorrect?
I am trying to set up a script that will feed bunchs of files into this macro,
and this functionality would be very useful.

For reference, I am running SAC 101.0 on SUSE Linux.

Any help would be much appreciated.


Tara Mayeau

17:49:26 v.22510d55