Thanks to all who gave it a go.

I called the folks at Robelle, and they came up with a nice solution:


:IF BOUND(CMD_FILE_FAILED)
:  ECHO EXIT     > TEMPFILE
:ELSE
:  ECHO CONTINUE > TEMPFILE
:ENDIF

 USE TEMPFILE


****************************************************************************
***************************************************************

Hi all,

I have a USE file that's being called from within SUPRTOOL, and what I need
is for the USE file to abort/cease/stop executing at some condition within
the USE file.

Here is an example:


LINKFILE LORRIG.DATA, LORRIG2.DATA

:IF BOUND(CMD_FILE_FAILED)
: ABORT
:ENDIF

DO SOME MORE STUFF
AND SOME MORE STUFF
STILL MORE STUFF
DONE WITH EVERYTHING

If the CMD file LINKFILE has a problem, it creates the Ci var
CMD_FILE_FAILED, and at that point, I need the USE file to stop running
(I've put the word ABORT at the IF for the purpose of example, but that's
where the execution should stop).

If I set EOD or EOJ, then the USE file just gives the 'Command not
programmatically executable. (CIERR 12)' and keeps on truck'n.


Any ideas?


Thanks,

Ray Shahan

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *