$UpdLoc

From m204wiki
(Redirected from $UPDLOC)
Jump to navigation Jump to search

The $UPDLOC function is used with Parallel Query Option/204 to determine the location name of the current update unit.

$UPDLOC takes no arguments, and returns a string indicating the location of the update unit as follows:

  • If there is no update unit currently in effect, the string is null.
  • For a local update, the return string is 'LOCAL'.
  • For a remote update, the return string is the location name of the node where the update is occurring.

Example

%X = $UPDLOC IF %X <> THEN PRINT 'UPDATE UNIT IS IN PROGRESS AT LOCATION ' WITH %X END IF