Subject: | |
From: | |
Reply To: | |
Date: | Sun, 21 Feb 1999 21:37:42 -0800 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
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
--
|
|
|