[next] [previous] [contents]

  4.5.2 Changing the Values of Variables
  To change the value of a variable, use the DEPOSIT com-
  mand as follows:
  DBG> DEPOSIT variable_name = value

  The DEPOSIT command is like an assignment statement in
  BASIC.

  In the following examples, the DEPOSIT command assigns
  new values to different variables. The debugger checks that
  the value assigned, which may be a language expression, is
  consistent with the data type and dimensional constraints of
  the variable.

  Deposit a string value (it must be enclosed in quotation marks
  or apostrophes):
  DBG> DEPOSIT PARTNUMBER = "WG-7619.3-84"

  Deposit an integer expression:
  DBG> DEPOSIT WIDTH = CURRENT_WIDTH + 10

  Deposit element 12 of an array of characters (you cannot
  deposit an entire array aggregate with a single DEPOSIT
  command, only an element):
  DBG> DEPOSIT C_ARRAY(12) = 'K'

  You can specify any kind of address expression, not just
  a variable name, with the DEPOSIT command (as with
  the EXAMINE command). You can override the defaults
  for typed and untyped locations if you want the data to be
  interpreted in some other data format.