Thanks Greg; this works but why?
My two var's should have worked as well; I'm stumped!
Larry
-----Original Message-----
From: Gillock, Greg [mailto:[log in to unmask]]
Sent: Thursday, December 28, 2006 12:30 PM
To: Larry Barnes
Subject: RE: [HP3000-L] Vesoft date calculation issue
This seems to work
calc datebuild(06,12,28) - datebuild(70,01,01)
13510, $34C6, %32306, "..4."
setvar x1 datebuild(06,12,28) - datebuild(70,01,01)
showvar x1
X1 = 13510
-----Original Message-----
From: HP-3000 Systems Discussion [mailto:[log in to unmask]] On
Behalf Of Larry Barnes
Sent: Thursday, December 28, 2006 2:14 PM
To: [log in to unmask]
Subject: [HP3000-L] Vesoft date calculation issue
I'm trying to take a date that is entered as a string value then convert
it to a date and subtract that date from another date that was created
using datebuild. When I attempt to subtract one from the other I keep
getting an error. I've searched the archives and can't find anything on
this.
Can someone set me straight.
Here's what I've tried (inside of MPEX):
%SETVAR D1 DATEBUILD(70,01,01)
%SETVAR D2 DATEBUILD(06,12,28)
%CALC !D2-!D1
Processing 06/12/28-70/01/01
^
Error: Expected date in MM/DD/YY format, not 70/01/01
Thanks for your input.
Larry B.
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
CONFIDENTIALITY NOTICE:
The information in this e-mail may be confidential and/or privileged.
This e-mail is intended to be reviewed by only the individual or
organization named above. If you are not the intended recipient or an
authorized representative of the intended recipient, you are hereby
notified that any review, dissemination, forwarding or copying of the
e-mail and its attachments, if any, or the information contained herein
is prohibited. If you have received this e-mail in error, please
immediately notify the sender by return e-mail and delete this e-mail
from your system.
Thank you.
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|