T.R | Title | User | Personal Name | Date | Lines |
---|
489.1 | ????not reproducible here | AUSS::GARSON | DECcharity Program Office | Fri Apr 18 1997 03:39 | 23 |
| re .0
> Any number up to 23 works, but 24 and above fails: (on Alpha V6.2)
>
> $dayofweek = f$cvtim("23-","absolute","weekday")
>
> returns "Thursday" in dayofweek as documented, however;
Sanity check: The intention of "23-" is the 23rd day of the current
month, right?
When I do this, I get "Wednesday", not "Thursday". Is this an old
customer report pertaining to a prior month?
> $dayofweek = f$cvtim("24-","absolute","weekday")
>
> returns %DCL-W-IVATIME.
I don't get this at all. I just get the right answer ("Thursday").
Can you actually reproduce this on your system?
I am using Alpha VMS V6.2 (as required by .0).
|
489.2 | | COMEUP::SIMMONDS | loose canon | Fri Apr 18 1997 05:05 | 4 |
| Re: .0
Yep, I can reproduce this on Alpha V7.1 .. investigating..
John.
|
489.3 | Fails for me too ... | MARVIN::CARLINI | | Fri Apr 18 1997 06:00 | 21 |
| Re: .0, .1
I CAN reproduce this on OpenVMS Alpha V6.2. Note that the seemingly
irrelevant line
$z = f$extract(2,2,"1997")
is REQUIRED to reproduce this ... otherwise it works fine (i.e. no
problem seen).
"23-" is a perfectly valid absolute time, so is "24-". But perhaps DCL
ends up thinking it is looking at the hours field somehow?
Adding a second dash (i.e. explicit blank month) seems to work around
the problem ("24--" is OK) but shouldn't be necessary.
Has your V6.2 Alpha had the 10K day patch? (I don't manage mine, so I
don't know).
Antonio
|
489.4 | | CSC32::CAWOOD | | Fri Apr 18 1997 20:25 | 40 |
| Reply to .1:
> Sanity check: The intention of "23-" is the 23rd day of the current
> month, right?
>
> When I do this, I get "Wednesday", not "Thursday". Is this an old
> customer report pertaining to a prior month?
My mistake. My f$cvtime had "24-" and returned Thursday.
Reply to .3:
> I CAN reproduce this on OpenVMS Alpha V6.2. Note that the seemingly
> irrelevant line
>
> $z = f$extract(2,2,"1997")
>
> is REQUIRED to reproduce this ... otherwise it works fine (i.e. no
> problem seen).
I found f$extract is required on V7.1, but on a V6.2 system the single
call to f$cvtime, without the preceding f$extract produces the error.
> Adding a second dash (i.e. explicit blank month) seems to work
> around the problem ("24--" is OK) but shouldn't be necessary.
That's good to know, thanks.
> Has your V6.2 Alpha had the 10K day patch? (I don't manage mine,
> so I don't know).
Neither the 6.2 nor the 7.1 system I tested this on has the delta time
patch. These are test systems. I'll install the patch and let you
know if nobody beats me to it.
Should I IPMT this? I'm guessing yes.
Thanks,
Greg
|
489.5 | | COMEUP::SIMMONDS | loose canon | Sat Apr 19 1997 06:55 | 4 |
|
.4> Should I IPMT this? I'm guessing yes.
You should.
|
489.6 | me too now | AUSS::GARSON | DECcharity Program Office | Sun Apr 20 1997 20:05 | 7 |
| re .0
> And on Alpha 6.2, a single call to f$cvtime with 24 or above fails -
> see below.
On V6.2 I still can't reproduce this but with the f$extract line
(allegedly needed with V7.1) I can reproduce it (on V6.2).
|
489.7 | Also fails on OpenVMS/Alpha V6.1 | GIDDAY::GILLINGS | a crucible of informative mistakes | Sun Apr 20 1997 23:40 | 10 |
| Same result on OpenVMS/Alpha V6.1 (with 10K patch). The F$EXTRACT is
required. Also reproduced on V6.2 and V7.1.
$z = f$extract(2,2,"1997")
$rep_day = "28"
$dayofweek = f$cvtime("''rep_day'-","absolute","weekday")
%DCL-W-IVATIME, invalid absolute time - use DD-MMM-YYYY:HH:MM:SS.CC format
\28-\
John Gillings, Sydney CSC
|
489.8 | a little <CTRL-T> will fix it! | COMEUP::SIMMONDS | loose canon | Mon Apr 21 1997 05:52 | 22 |
| For grins (or groans..:) here's another quirky angle on this one..
$ write sys$output f$gets("version")
V6.2-1H3
$
$
$ y=f$extr(2,2,"1997")
$ z=f$cvti("24-",,)
%DCL-W-IVATIME, invalid absolute time - use DD-MMM-YYYY:HH:MM:SS.CC format
\24-\
$
$ y=f$extr(2,2,"1997")
$ z=f$cvti("24-",,) ! <--- <CTRL-T> before pressing <RETURN>
TALKY1::_FTA91: 18:45:17 (DCL) CPU=00:00:00.09 PF=182 IO=116 MEM=57
$ z=f$cvti("24-",,) ! <--- <RETURN>
$ sho symb z
Z = "1997-04-24 00:00:00.00"
$
Sure looks like inadvertent storage sharing somewhere..
John.
|
489.9 | Keeps on working . . . | TAY2P1::HOWARD | Whoever it takes | Mon Apr 21 1997 11:55 | 38 |
| Re: .8
Works for me too (I have the Delta patch installed). But it also keeps
working:
$ write sys$output f$gets("version")
V6.2
$ y=f$extr(2,2,"1997")
$ z=f$cvti("24-",,)
%DCL-W-IVATIME, invalid absolute time - use DD-MMM-YYYY:HH:MM:SS.CC
format
\24-\
$ z=f$cvti("24-",,)
%DCL-W-IVATIME, invalid absolute time - use DD-MMM-YYYY:HH:MM:SS.CC
format
\24-\
$ z=f$cvti("24-",,)
%DCL-W-IVATIME, invalid absolute time - use DD-MMM-YYYY:HH:MM:SS.CC
format
\24-\
$ z=f$cvti("24-",,)
TAY2P1::HOWARD_FTA22 10:52:08 (DCL) CPU=00:01:05.47 PF=7063
IO=232478 MEM=64
$ z=f$cvti("24-",,)
$ show sym z
Z = "1997-04-24 00:00:00.00"
$ z=f$cvti("24-",,)
$ z=f$cvti("24-",,)
$ z=f$cvti("24-",,)
$ z=f$cvti("24-",,)
$ z=f$cvti("24-",,)
$ show sym z
Z = "1997-04-24 00:00:00.00"
$ z=f$cvti("21-",,)
$ show sym z
Z = "1997-04-21 00:00:00.00"
|
489.10 | IPMT request id HPAQ413YL | CSC32::CAWOOD | | Tue Apr 29 1997 13:36 | 2 |
| IPMT Request ID = HPAQ413YL, QAR # 06174 in SPR_VMS_V5 database on node
TRIFID.
|
489.11 | 20 year old bug uncovered.. | COMEUP::SIMMONDS | loose canon | Wed May 28 1997 22:29 | 0
|