HP3000-L Archives

October 1999, Week 1

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:
"VANCE,JEFF (HP-Cupertino,ex1)" <[log in to unmask]>
Reply To:
VANCE,JEFF (HP-Cupertino,ex1)
Date:
Tue, 5 Oct 1999 10:49:36 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (19 lines)
...
> Example:       !HPMONTH!HPDATE!HPYEAR  used on 01/01/99 returns 1199.
> When I used this format with a system date of 01/01/00 and
> 01/01/01 the variables returned 110 and 111 respectively.

On 6.0 Express 1 you can use the new HPYYYYMMDD string variable.
On the above date you would get:
    :showvar HPYYYYMMDD
    HPYYYYMMDD = 20000101

An advantage of using this new variable versus concatenating the full
date from HPYYYY + HPMONTH + HPDAY, is that you do not need to be
concerned if your job is running at a day, month or year boundary.
The concatenation approach results in the wrong final date if
the day rolls to the next month in the middle of the equation.

regards,
Jeff Vance, CSY

ATOM RSS1 RSS2