Specifies an address to use as the starting address for the memory
displayed in the Memory window.
If the address you specify is invalid, z/OS® Debugger displays
an error message.
The MEMORY command cannot be saved and restored.

>>-MEMORY--+-address-----------+--;----------------------------><
+-reference---------+
+-'--reference--'---+
'-simple_expression-'
- address
- The address to use as the starting address for the memory displayed
in the Memory window.
- reference
- A variable whose location in memory is used as the starting address
of the memory displayed in the Memory window.
- 'reference'
- A LangX COBOL variable whose location in memory is used as the
starting address of the memory displayed in the Memory window.
- simple_expression
- The address with a positive or negative hexadecimal or integer
displacement. The resulting value is the starting address of the
memory displayed in the Memory window.
Usage
notes
- For COBOL, if you specify a variable with reference modification,
then the storage location of that variable is used as a base address,
not the location of the specified reference.
- If you specify address with more than
8 significant digits or if reference references
64-bit addressable storage, z/OS Debugger assumes
that the storage location is 64-bit addressable storage. Otherwise, z/OS Debugger assumes
that the storage location is 31-bit addressable storage.
- For C and C++,
if reference is a pointer, z/OS Debugger displays
the contents at the address given by that pointer.
Examples
- Display memory starting at X'2503D008' by entering the
following command:
MEMORY X'2503D008';
This
address becomes the base address.
- Display memory starting at the storage location of variable Employee_name by
entering the following command:
MEMORY Employee_name;
The
address of Employee_name becomes the base
address.
- Display memory starting 100 hex bytes after X'0045CB00' by
entering the following command:
MEMORY x'0045CB00' + x'100'
The
base address is X'0045CC00'.
Refer to the following sections for more information related to
the material discussed in this section.
Refer to the following topics
for more information related to the material discussed in this topic.
- Related tasks
- "z/OS Debugger session
panel" in the IBM® z/OS Debugger User's Guide
- "Switching between the Memory window and Log window" in the IBM z/OS Debugger User's Guide
- "Displaying the Memory window" in the IBM z/OS Debugger User's Guide
- Related references
- address