HP3000-L Archives

February 1999, Week 4

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:
Jeff Vance <[log in to unmask]>
Reply To:
Jeff Vance <[log in to unmask]>
Date:
Sun, 21 Feb 1999 21:37:42 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (30 lines)
I have two minor points:

On Feb 22,  8:46am, Terry Prime wrote:
...
> SETVAR DATE,"!HPMONTH/!HPDATE/!HPYEAR"

Since this is not an atomic operation you will get the wrong value if
the HPDATE advances to the 1st day of the next month after getting
HPMONTH.  Or, if the year advances just after retrieving HPMONTH and HPDATE.
A solution (inspired by Walter Murray) is to get HPMONTH again and compare
it to the previous value.  Eg.
   setvar month hpmonth
   setvar date "!month/!hpdate/!hpyear"
   if month <> hpmonth then
      setvar date "!hpmonth/!hpdate/!hpyear"
   endif

Or, in 6.0 Express 1, you will be able to reference the new HPYYYYMMDD
variable and be guaranteed the all parts of the year-month-date are
consistent.

...
> ECHO ;ONLINE=START >>DDFS1.SYSOPER.SYS

By default the CI redirects to a TEMP file.

Jeff Vance, CSY

--

ATOM RSS1 RSS2