TACL Reference Manual

Built-In Functions and Variables
HP NonStop TACL Reference Manual429513-018
9-404
#TACLVERSION Built-In Function
#TACLVERSION Built-In Function
Use #TACLVERSION to determine which RVU of TACL you are using.
Result
With the REVISION option, #TACLVERSION returns only the RVU-level portion of the
version identifier, followed by a revision level identifier, in the form:
Xnn nnnn
where Xnn is the RVU identifier (C20, for example) and nnnn is a four-digit number
identifying the revision level within that RVU. That number is incremented whenever an
interim product modification is made to the RVU.
This form of revision number can be collated. For example, if a macro operation
depends on a feature released in a particular RVU of TACL, such as C20 0011, the
macro can test to see if the current RVU is equal to or greater than that RVU:
[#IF "[#TACLVERSION/REVISION/]" '>=' "C20 0011" |THEN| ...
Without the REVISION option, #TACLVERSION returns the current TACL RVU
identifier.
Examples
1. This example illustrates the result of #TACLVERSION:
17> #OUTPUT [#TACLVERSION]
T9205D30 - 26MAR1999
1. This code disassembles a complete TACL RVU:
[#DEF break^version MACRO |BODY|
== First argument is var-level to receive product
== Second argument is var-level to receive version
== Third argument is var-level to receive date
#FRAME
== Make a structure to allow access to individual
== characters:
[#DEF tv STRUCT
BEGIN
CHAR fld (0:19)
#TACLVERSION [ / REVISION / ]