<HTML>
<HEAD>
<TITLE>Do Loop Bug</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>I copied the Do Loop macro for particle motion plots from the Do Loop Examples contained in the MACRO Section of the SAC Manual, and have found a problem &#8211; See Macro followed by explanation below:<BR>
</SPAN></FONT><FONT SIZE="5"><FONT FACE="Times, Times New Roman"><SPAN STYLE='font-size:16.0px'><BR>
<FONT COLOR="#FC000D">READ ABC <BR>
SETBB TIME1 0 <BR>
DO TIME2 FROM 2 TO 10 BY 2 <BR>
XLIM %TIME1 $TIME2 <BR>
TITLE 'Particle Motion from %TIME1 to $TIME2$' <BR>
PLOTPM <BR>
SETBB TIME1 $TIME2 <BR>
ENDDO<BR>
<BR>
</FONT></SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>There are four variables in the macro<BR>
<BR>
Time1 &#8211; The starting value for XLIM<BR>
Time2 &#8211; The ending value for XLIM<BR>
Upper limit of macro processing<BR>
Incremental value to increase or decrease the values of both Time1 and Time2 for the next increment.<BR>
<BR>
As long as the incremental value is equal to or greater than the time difference between Time1 and Time2, the macro works as advertised. &nbsp;NOTE &#8211; This is how the Macro above is setup.<BR>
<BR>
However, when the incremental time is decreased to less than the value between Time1 and Time2, the time difference between Time1 and Time two is AUTOMATICALLY decreased to equal the incremental value. &nbsp;See values in Macro below:<BR>
<BR>
</SPAN></FONT><FONT COLOR="#FC000D"><FONT SIZE="5"><FONT FACE="Times, Times New Roman"><SPAN STYLE='font-size:16.0px'>READ ABC <BR>
SETBB TIME1 2300 <BR>
DO TIME2 FROM 2400 TO 2800 BY 5 <BR>
XLIM %TIME1 $TIME2 <BR>
TITLE 'Particle Motion from %TIME1 to $TIME2$' <BR>
PLOTPM <BR>
SETBB TIME1 $TIME2 <BR>
ENDDO<BR>
</SPAN></FONT></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
I have not found a solution to this problem. <BR>
<BR>
If anyone has encountered this problem, or has a suggestion on how to alleviate the problem, I would appreciate hearing from them.<BR>
<BR>
Thank You<BR>
<BR>
Bob Hancock</SPAN></FONT>
</BODY>
</HTML>