Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 Tools : YEAR

YEAR
Returns the two-digit year when the transaction started based on the local machine ’s time zone in which the Execution Environment is running. (F)
Invocation
time = YEAR
 
On return, contains the year. Its syntax is C (fixed-length character string) with length 2.
Usage Notes
The returned value is a character string containing the year modulo 100 (98, 99, 00…).
Example
The following rule determines the year when the current transaction started and prints it to the message log:

 
RULE EDITOR ===>
YEAR_1;
_ LOCAL TIME;
_ ------------------------------------------------------------------------
     _ ------------------------------------------------------------+-----------
_ TIME = YEAR; | 1
_ CALL MSGLOG('THIS TRANSACTION WAS STARTED IN 20'|| TIME); | 2
_ ------------------------------------------------------------------------

 
Output for the YEAR_1 Rule
Pressing PF2 after executing this rule displays the following in the message log:

 
------------------------- INFORMATIONAL MESSAGE LOG ------------------
COMMAND ===> SCROLL ===> P
THIS TRANSACTION WAS STARTED IN 2000.

 

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved