$UpdLoc

From m204wiki
Revision as of 17:53, 31 July 2014 by Mlarocca (talk | contribs) (Mlarocca moved page $UPDLOC to $UpdLoc: Lower case change)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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