HP3000-L Archives

August 2005, Week 2

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:
"James B. Byrne" <[log in to unmask]>
Reply To:
James B. Byrne
Date:
Mon, 8 Aug 2005 12:15:02 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (32 lines)
I am, low after these many years, revisiting our backup jobs and am
in the process of refactoring my first attempts of incorporating
store to disc as an option.  I want to exit the job if the options
selected do not make sense. For example, if neither the tape nor
the disc backup option is selected then I want to send a few
pertinent words to the console and then exit the job with out
falling through the rest of the code.

What is the recommended exit call for a job within an IF construct:
ESCAPE, EXIT, BYE?

IF _OPT1_ FALSE AND _OPT2_ FALSE THEN
  TELLOP You have choosen to do nothing useful!
  TELLOP Check the options selected for !HPJOBNAME.
  TELLOP !HPJOBNAME Exiting prematurely!
  <exit command du jour here>
ENDIF

Regards,
Jim

--
     *** e-mail is not a secure channel ***
mailto:byrnejb.<token>@harte-lyne.ca
James B. Byrne                Harte & Lyne Limited
vox: +1 905 561 1241          9 Brockley Drive
fax: +1 905 561 0757          Hamilton, Ontario
<token> = hal                 Canada L8E 3C3

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

ATOM RSS1 RSS2