HP3000-L Archives

September 2002, Week 5

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:
"VANCE,JEFF (HP-Cupertino,ex1)" <[log in to unmask]>
Reply To:
VANCE,JEFF (HP-Cupertino,ex1)
Date:
Mon, 30 Sep 2002 14:30:55 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (58 lines)
Hi all,

I've seen this job stream before but never took the time to
look at it closely...

Here are a few random comments, for what they're worth.

1) when does this job get streamed?  It could, but does not, stream itself.
2) *if* the job is scheduled every night then I have a few minor
   performance related comments:
3) the test 'if !hpday = 1' is evaluated ~730 times (2*365) in a year.
4) approx 104 times the line above will evaluate true (assuming 52 Sundays
   per year).
5) ~ 52 times hpday does = 1, thus the !hpmonth clause needs to be evaluated

   52*2 times.
6) ~ 8 times the day will be Sun and the month will be (Oct or Apr), vs.
   ~ 24 times the day will be Sun and the (date > 24 or < 8)

I think I'd write the job as:

  !if hpday = 1 then
  !   if hpmonth = 10 and hpdate > 24 then
  !      setclock timezone=W8:00
  !   elseif hpmonth = 4 and hpdate < 8 then
  !      setclock timezone=W7:00
  !   endif
  !endif

OK, big deal!!

 Jeff Vance, "CSY"

> Somebody on this list passed this on to me a couple of
> years ago and it works flawlessly...
>
> !JOB SETCLOCK,MANAGER.SYS;HIPRI;OUTCLASS=LP,1,1
> !comment  Check whether to go on or off daylight savings time
> !if hpday = 1 and hpmonth = 10 and hpdate > 24 then
> !  SETCLOCK TIMEZONE = W8:00
> !  TELLOP *********************************************
> !  TELLOP Changing the system clock to STANDARD TIME.
> !  TELLOP The clock will S L O W   D O W N until
> !  TELLOP we have fallen back one hour.
> !  TELLOP *********************************************
> !elseif hpday = 1 and hpmonth = 4 and hpdate < 8 then
> !  SETCLOCK TIMEZONE = W7:00
> !  TELLOP *********************************************
> !  TELLOP Changing the system clock to DAYLIGHT TIME.
> !  TELLOP The clock jumped ahead one hour.
> !  TELLOP *********************************************
> !endif
> !showclock
> !EOJ

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

ATOM RSS1 RSS2