<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Thanks George and Arthur. I usually do it the way you proposed George but needed something quick and dirty. Thanks again for your time !<br><br><div style="color:rgb(162, 162, 162);"><strong><font style="font-style:italic;" size="2"><font class="Apple-style-span" face="garamond, 'new york', times, serif">Serenity isn't freedom from the storm, but peace within the storm</font></font><font class="Apple-style-span" face="garamond, 'new york', times, serif"><br></font></strong></div>  <div style="color:rgb(162, 162, 162);"><font size="2"><strong><font class="Apple-style-span" face="garamond, 'new york', times, serif">Januka Attanayake&nbsp;</font></strong></font></div>  <div style="color:rgb(162, 162, 162);"><font size="2"><strong><font class="Apple-style-span" face="garamond, 'new york', times, serif">Global Seismology &amp; Economics<br>The University of
 Connecticut <br>Beach Hall - U2045<br>354, Mansfield Rd; <br>Storrs, CT 06269<br></font></strong></font><font size="2"><strong style="font-weight:bold;"><font class="Apple-style-span" face="garamond, 'new york', times, serif">Tel :&nbsp; 860 486 0475 (Office)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></strong><strong style="font-weight:bold;"><font class="Apple-style-span" face="garamond, 'new york', times, serif">&nbsp; 860 486 3914 (Lab - P405)<br></font></strong></font></div>    <div style="color:rgb(134, 135, 164);font-family:times new roman, new york, times, serif;"><font size="2"><span style="color:rgb(139, 139, 139);font-weight:bold;"><font class="Apple-style-span" face="garamond, 'new york', times, serif">URL:&nbsp;</font><a rel="nofollow" target="_blank" href="http://sites.google.com/site/janukaattanayake/"><font class="Apple-style-span" face="garamond, 'new york', times,
 serif">http://sites.google.com/site/janukaattanayake/</font></a></span></font><div><font class="Apple-style-span" color="#a2a2a2"><br></font><br><br><br><br></div></div><br><br>--- On <b>Tue, 11/23/10, Arthur Snoke <i>&lt;snoke@vt.edu&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Arthur Snoke &lt;snoke@vt.edu&gt;<br>Subject: Re: [SAC-HELP] macro skipping files?<br>To: "Januka Attanayake" &lt;jattanayake@yahoo.com&gt;<br>Cc: "SAC-help Listserv" &lt;sac-help@iris.washington.edu&gt;<br>Date: Tuesday, November 23, 2010, 7:27 AM<br><br><div class="plainMail">I think your problem is caused by a flaw in the Do WILD command that <br>limited the number of characters (and effectively files) in macro commands <br>as you describe.<br><br>This was fixed in 101.4.&nbsp; I suggest you upgrade.<br><br>On Mon, 22 Nov 2010, Januka Attanayake wrote:<br><br>&gt; Hi,<br>&gt; I am executing
 the following simple macro in sac 101.3b. I have 42 files in the<br>&gt; directory and the macro seems to act only&nbsp; on 23 of them. All the sac files have<br>&gt; an OMARKER and it is always negative. I am just wondering if there is a memory<br>&gt; limit to sac when macros are executed? Any help is much appreciated!<br>&gt; <br>&gt; DO FILE WILD *.SAC<br>&gt; &nbsp; READ $FILE<br>&gt; &nbsp; SETBB OMKR &amp;1,OMARKER<br>&gt; &nbsp; GETBB OMKR<br>&gt;<br>&gt; &nbsp; XLIM T0 -10 10<br>&gt; &nbsp; P<br>&gt; &nbsp; CUT ON<br>&gt; &nbsp; CUTERR FILLZ<br>&gt; &nbsp; CUT b %OMKR e<br>&gt; &nbsp; READ $FILE<br>&gt; &nbsp; WRITE OVER<br>&gt; ENDDO<br>&gt; CUT OFF<br>&gt; <br>&gt; Januka.<br>&gt; <br>&gt; Serenity isn't freedom from the storm, but peace within the storm<br>&gt; Januka Attanayake <br>&gt; Global Seismology &amp; Economics<br>&gt; The University of Connecticut<br>&gt; Beach Hall - U2045<br>&gt; 354, Mansfield Rd;<br>&gt; Storrs, CT
 06269<br>&gt; Tel :&nbsp; 860 486 0475 (Office)<br>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 860 486 3914 (Lab - P405)<br>&gt; URL:&nbsp;<a href="http://sites.google.com/site/janukaattanayake/" target="_blank">http://sites.google.com/site/janukaattanayake/</a><br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; --- On Mon, 11/22/10, Brian Savage &lt;<a ymailto="mailto:savage@uri.edu" href="/mc/compose?to=savage@uri.edu">savage@uri.edu</a>&gt; wrote:<br>&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;From: Brian Savage &lt;<a ymailto="mailto:savage@uri.edu" href="/mc/compose?to=savage@uri.edu">savage@uri.edu</a>&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;Subject: Re: [SAC-HELP] Ubuntu and sac...<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;To: "SAC-help Listserv" &lt;<a ymailto="mailto:sac-help@iris.washington.edu" href="/mc/compose?to=sac-help@iris.washington.edu">sac-help@iris.washington.edu</a>&gt;<br>&gt;&nbsp; &nbsp;
 &nbsp;&nbsp;&nbsp;Date: Monday, November 22, 2010, 5:02 PM<br>&gt; <br>&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;The message below has been identified as a bug in 101.4 and I can<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;confirm this behavior using the ohpf command on my system.&nbsp; This came<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;about during the conversion from 32 to 64 bit version of sac.<br>&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;If you require this patch before the release of version 101.5, please<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;contact me directly.&nbsp; This fix will be made available in version<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;101.5, coming out next year.<br>&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;Thank you for reporting this bug to the sac-help mailing list.<br>&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;Brian Savage<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;<a ymailto="mailto:savage@uri.edu"
 href="/mc/compose?to=savage@uri.edu">savage@uri.edu</a><br>&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;Re: OHPF / WAPF<br>&gt; <br>&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;On Nov 22, 2010, at&nbsp; 12:27 PM , Mario Ruiz Fernandez wrote:<br>&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt; Hello,<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt; Anybody knows if there is any problem related with the recent<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;ubuntu kernels and SAC? It seems to be a bug with Time interpretation<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;when using ppk with an OHPF file opened. Last months ago I was<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;working with SAC version 101.3b and everything worked properly. But I<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;recently actualized my ubuntu pc and this strange ppk image (see the<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;attached file) appears. I obtain the same strange
 figure when using<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;SAC version 101.3b and 101.4, so I think it is not a SAC problem but<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;a linux one, as version 101.3b worked fine before the actualization.<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt; This strange problem appears also in OHPF file but not in the sac<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;headers!!<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt; - ohpf file:<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt; OS8bIPU0&nbsp; 7 873014444060 0140733193388054-536870912.00<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-5368ISU2&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;0.0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 126.3<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp;&nbsp;&nbsp;10<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt; - sac headers:<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt; FILE: /Ocea/Data/072400022/07240002217.OS8b.0.sac - 1<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;--------------------------------------------------------------------------------<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;------------------------------------<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;NPTS = 29964<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; B = 0.000000e+00<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; E = 2.996300e+02<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;IFTYPE = TIME SERIES FILE<br>&gt;&nbsp;
 &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp; &nbsp; &nbsp; LEVEN = TRUE<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp; &nbsp; &nbsp; DELTA = 1.000000e-02<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;DEPMIN = -3.011890e+05<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;DEPMAX = 1.958390e+05<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;DEPMEN = -4.201941e+03<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp; &nbsp; AMARKER = 38.073&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;(IPU0)<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp;&nbsp;&nbsp;T0MARKER = 42.853&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;(ISU2)<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp; &nbsp; FMARKER = 164.33<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;KZDATE = AUG 28 (240), 2007<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp;
 &nbsp;&nbsp;&nbsp;KZTIME = 00:22:17.932<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp; &nbsp; &nbsp; KINST = 014<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp; &nbsp; &nbsp; KSTNM = OS8b<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp; &nbsp; &nbsp; CMPAZ = 0.000000e+00<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;CMPINC = 0.000000e+00<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;STLA = 1.514958e+01<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;STLO = -6.044403e+01<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;STEL = -3.000000e+03<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp; &nbsp; &nbsp; KEVNM = 07240002<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;LOVROK = TRUE<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp; &nbsp; &nbsp; NVHDR =
 6<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp; &nbsp; &nbsp; NORID = 0<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp; &nbsp; &nbsp; NEVID = 0<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;LPSPOL = FALSE<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;LCALDA = TRUE<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;KCMPNM = 0<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;KNETWK = SAntll07<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt; The same problem is obtained in a 64 and and a 32 bits pc.<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt; fram:~&gt; uname -a<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt; Linux fram 2.6.32-25-generic #45-Ubuntu SMP Sat Oct 16 19:52:42 UTC<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;2010 x86_64 GNU/Linux<br>&gt;&nbsp;
 &nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt; xslave:~&gt; uname -a<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt; Linux xslave 2.6.31-22-generic-pae #68-Ubuntu SMP Tue Oct 26<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;16:52:34 UTC 2010 i686 GNU/Linux<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt; Thank you in advance,<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt; Best Regads,<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt; Mario<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt; --------------------------------------------------------------<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt; Mario Ruiz Fernandez<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt; Dep. d'Estructura i Dinamica de la Terra<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;
 Institut de Ciencies de la Terra 'Jaume Almera' ICTJA-CSIC<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt; c/ Lluis Sole Sabaris s/n 08028 Barcelona (Spain)<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt; Tel.:&nbsp; &nbsp;&nbsp;&nbsp;+34 93 409 54 10<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt; Fax:&nbsp; &nbsp; &nbsp; +34 93 411 00 12<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt; E-mail:&nbsp;&nbsp;&nbsp;<a ymailto="mailto:mruiz@ictja.csic.es" href="/mc/compose?to=mruiz@ictja.csic.es">mruiz@ictja.csic.es</a><br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt; www:&nbsp; &nbsp; &nbsp; <a href="http://www.ictja.csic.es/edt/" target="_blank">http://www.ictja.csic.es/edt/</a><br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.tesisenxarxa.net/TDX-0303108-135403/"
 target="_blank">http://www.tesisenxarxa.net/TDX-0303108-135403/</a><br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt; ------------------------------------------------------------<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&gt; &lt;SAC_ppk.png&gt;<br>&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;_______________________________________________<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;sac-help mailing list<br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;<a ymailto="mailto:sac-help@iris.washington.edu" href="/mc/compose?to=sac-help@iris.washington.edu">sac-help@iris.washington.edu</a><br>&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;<a href="http://www.iris.washington.edu/mailman/listinfo/sac-help" target="_blank">http://www.iris.washington.edu/mailman/listinfo/sac-help</a><br>&gt; <br>&gt; <br>&gt; <br>&gt;</div></blockquote></td></tr></table><br>