[an error occurred while processing this directive]

HP OpenVMS Systems

ask the wizard
Content starts here

Use of F$FAO DCL Lexical Function?

» close window

The Question is:

 
I have tried on both OpenVMS Alpha V7.3-1 and V7.3-2 the following DCL F$FAO
 command :
 
WRITE SYS$OUTPUT F$FAO("Actual time is !%D")
 
but I am getting some strange response :
 
Actual time is 11-JAN-**** 06:00:06.93
 
Why the "!%D" directive is not working ?
 
I found this strange behaviour when using an error-message file ".MSG" within
 one alarm task where LIB$SIGNAL(%val(ERRNUMBER)) call was used to output alarm
 text from the ".MSG" file where the "!%D" FAO directive was used.
 
Thanks for any suggestions.
 
 


The Answer is :

 
  If you seek the current time, use:
 
    $ WRITE SYS$OUTPUT F$FAO("Actual time is !%D", 0)
 

answer written or last revised on ( 25-MAY-2004 )

» close window