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:
Francois Desrochers <[log in to unmask]>
Reply To:
Francois Desrochers <[log in to unmask]>
Date:
Mon, 8 Aug 2005 12:26:14 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (80 lines)
Jim,

One more thing...

You could also include an !EOJ but the job will not terminate abnormally. It will just stop. I guess this can make a difference if you have somekind of Stdlist analyzer to detect/report problems.

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!
  EOJ
ENDIF 

This should produce something like:

IF _OPT1_ FALSE AND _OPT2_ FALSE THEN
*** EXPRESSION TRUE
  TELLOP You have choosen to do nothing useful!
  TELLOP Check the options selected for !HPJOBNAME.
  TELLOP !HPJOBNAME Exiting prematurely!
  EOJ
CPU sec. = 1.  elapsed min. = 1.  MON, AUG  8, 2005,  1:21 PM.ENDIF

_________________________________ 
François Desrochers
QA Analyst, AMXW
Speedware
Division of Activant Solutions Inc.

6380 Cote de Liesse Rd., Suite 110
St. Laurent, Quebec
Canada H4T 1E3

T: 514.747.7007 ext. 8271
F: 514.747.3380


E-mail:   [log in to unmask] 
Web site: www.speedware.com
_________________________________



-----Original Message-----
From: HP-3000 Systems Discussion [mailto:[log in to unmask]] On Behalf Of James B. Byrne
Sent: Monday, August 08, 2005 12:15 PM
To: [log in to unmask]
Subject: [HP3000-L] Best practice WRT Job exit on conditional

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 *


Notice: This transmission is for the sole use of the intended recipient(s) and may contain information that is confidential and/or privileged.  If you are not the intended recipient, please delete this transmission and any attachments and notify the sender by return email immediately.  Any unauthorized review, use, disclosure or distribution is prohibited.

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

ATOM RSS1 RSS2