The SNAP statement requests a memory snap of one or all of the following areas:
The areas requested in the SNAP request are written to the system log file, which is defined during system generation as a sequential dataset or a dictionary area.
►►─── SNAP ─┬─────────────────┬───────────────────────────────────────────────► └─ TITLE (title) ─┘ ┌─────────────────────────────────────────────────────────────────────┐ ►─▼─┬─ ALL ───────────────────────────────────────────────────────────┬─┴─; ─►◄ ├─ SYSTEM ────────────────────────────────────────────────────────┤ ├─ TASK ──────────────────────────────────────────────────────────┤ │ ┌────────────────────────────────────────────────────────────┐ │ └──▼── FROM (begin-snap-location) ─┬─ TO (end-snap-location) ─┬─┴─┘ └─ LENGTH (snap-length) ───┘
Specifies the title to be printed at the beginning of each page of the snap. If requested, a title must contain 134 characters; the first character is reserved for use by the system, and the second character must be a valid ASA carriage control character (blank, 0, 1, +, or -). Title is the symbolic name of a user-defined field that contains the title.
Requests a formatted snap of specified areas.
Writes a snap of both task and system areas. Areas associated with the issuing task are formatted separately from the system areas. (Task areas are also included with the system areas but are not itemized by task.)
Writes a snap of system areas.
Writes a snap of task areas.
Writes a snap of the specified memory location. Begin-snap-location is the symbolic name of a user-defined field that indicates the starting location of the area to be snapped.
Indicates the end of the area to be snapped and is specified following the last data-item to be included in the snap. End-snap-location is the symbolic name of either a user-defined dummy byte field or a field that contains a data item not associated with the area requested in the snap.
Defines the length, in bytes, of the area to be included in the snap. Snap-length is either the symbolic name of a user-defined field that contains the length of the data area, or the length itself expressed as a numeric constant.
The following Example illustrates a SNAP statement that writes a memory snap of the specified memory location:
SNAP TITLE (SNAP_TITLE) FROM (START_LOC) TO (END_LOC);
Upon completion of the SNAP function, the ERROR_STATUS field in the system communications block indicates the outcome of the operation:
The request has been serviced successfully.
The derived length of the specified snap storage area is zero or negative.
|
Copyright © 2014 CA.
All rights reserved.
|
|