September 9, 2003
ENVIR Argument of WYLBUR TERMINAL Function Now Available
WYLBUR users can use the new ENVIR argument for the TERMINAL function to determine which system a command procedure is running on and to either skip or run code that works only on a particular system. The format of the function is:
TERMINAL('ENVIR')
It returns either SOUTH or TITAN depending on which system the user is logged on to.
For example, the following code would test for the system the user is logged on to and return a message indicating the name of the system.
IF TERMINAL('ENVIR') EQ 'SOUTH' THEN T 'I AM ON SOUTH'
IF TERMINAL('ENVIR') EQ 'TITAN' THEN T 'I AM ON TITAN'
The ENVIR argument can be used in conditional processing to determine whether to run a block of code or to skip a block of code. This argument would be useful if you had a CP that contained commands that are not valid on Titan. You could skip those commands on Titan while continuing to execute them on the South system-all within a single CP.
| Comments | NIH Computer Center | Transition to Titan | Subscribe/Unsubscribe | Current Issues | Archive |