Subject: | |
From: | |
Reply To: | |
Date: | Tue, 20 Dec 2016 11:16:30 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
On Tue, December 20, 2016 10:05, Long, John wrote:
> Not show what version you are running nor, exactly what your trying to
> accomplish but hopefully this will give you some food for thought.
I worked around the issue with an untidy kludge in QUIZ. Thanks to
Donna for providing a most interesting CI script, with which I will
implement a more satisfactory solution.
The problem with using simple algebra with the CI VARS that HP
provides is of course deriving a valid date from the result.
:SETVAR HPDD 20
:SETVAR TOMORROW,!HPDD + 1
:SHOWVAR TOMORROW
TOMORROW = 21
:SETVAR HPDD 31
:SETVAR tomorrow,!HPDD + 1
:SHOWVAR TOMORROW
TOMORROW = 32
Ooops!
A function or utility to calculate valid dates is sort of what I was
hoping the operating system or one of its utilities would provide. I
would rather not have to do that myself. The script that Donna so
kindly provided reveals just how much work that is.
I am surprised to discover that this sort of thing does not appear to
be provided for in the CI. Even the 'POSIX' date utility in HPBIN
lacks the capability.
--
*** e-Mail is NOT a SECURE channel ***
Do NOT transmit sensitive data via e-Mail
Do NOT open attachments nor follow links sent by e-Mail
James B. Byrne mailto:[log in to unmask]
Harte & Lyne Limited http://www.harte-lyne.ca
9 Brockley Drive vox: +1 905 561 1241
Hamilton, Ontario fax: +1 905 561 0757
Canada L8E 3C3
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|