HP OpenVMS Systems

ask the wizard
Content starts here

DCL CLD parsing /SINCE=today date?

» close window

The Question is:

Dear Dr.Wizard, your highness,
Enlighten me.  Why does CDU (and DCL) translate the
keyword "today" (type=$datetime) to today's date
("19-Feb-2001 00:00:00.00") when it appears in
a "parameter", but not when it appears as a default
in a "qualifier" ??
    parameter p1 label=DATE prompt="date" value(required,type=$datetime)
works as described above, but
   qualifier SINCE default nonnegatable placement=global
simply presents the string "today" as the result of CLI$GET_VALUE
If there is a way to make it work, please give an example.
Thank you.

The Answer is :

  The OpenVMS Wizard would encourage the syntax:
   qualifier SINCE, value(default=TODAY,type=$datetime)
  If you quote the string, well, that's the string that you get.

answer written or last revised on ( 23-FEB-2001 )

» close window