HP3000-L Archives

December 2001, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Shahan, Ray" <[log in to unmask]>
Reply To:
Shahan, Ray
Date:
Wed, 19 Dec 2001 10:59:13 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (56 lines)
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 *

ATOM RSS1 RSS2