Hi Januka, <br><br>I am using a similar syntax to read in files with a macro and it works fine.<br>r $1$.e $2$.n $3$.z<br>You have to be in the folder where the data files are located. Then run the macro and pass the arguments:
<br>SAC&gt; m test.m lhut lhut lhut<br><br>This would read lhut.e lhut.n lhut.z. Make sure you type the filename correct. If it's always the three files for a given event you want to read, then a <br>r $1$.e $1$.n $1$.z<br>
would be enough. Then you just have to give the argument once and all three files will be read. (Assuming the extensions are always .e .n .z)<br><br>It would be helpful to give the exact error message, because &quot;it won't read the files&quot; can mean a lot of things.
<br><br>Good luck,<br>Andreas<br><br><br><br><div><span class="gmail_quote">On 11/12/06, <b class="gmail_sendername">Januka Attanayake</b> &lt;<a href="mailto:jattanayake@gmail.com">jattanayake@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>Hi,</div>
<div>I am having trouble with running a small macro that I am trying to write. I have a bunch of sac files (Z, E, N) in a directory and&nbsp;I want to read&nbsp;event specific files (i.e. Z,N,E of a given event) together, do a &nbsp;calculation and give the out put. One I tried to use to read the files is 
</div>
<div>&nbsp;</div>
<div>r $1$..BHZ.R.SAC $2$..BHN.R.SAC $3$..BHE.R.SAC</div>
<div>&nbsp;</div>
<div>This wouldn't read the files and right now I am running out of options, Would anyone have a good solution for this? </div></blockquote></div><br>