CDBUF
DUMP
Notes Module
1 Retrieve the member name or module DMSZAP name, if specified, from the control
record. If an error is encountered,
issue the message DMSZAP201W !NVALID CON- TROL RECORD OR NO GO SWITCH SET Continue by reading another centro!
record.
2 If starting and ending addresses are DMSZAP specified, retrieve them from the
control record, check them for
validity, and convert them into hexa-
decimal digits. If either of the
addresses is not an even number of
digits, issue the message DMSZAP203W - ER RO R - ODD NUMBER OF DIGITS - SET NO GO SWITCH and continue by reading another con-
trol record:
3 Go to the open routine (PREOPLlB) DMSZAP to locate the member or module
and the CSECT desired.
4 Use the starting and ending addresses DMSZAP of the CSECT to determine the length
of the dump if not otherwise specified.
Go to the read text routine to read the
file (RDTXT) and then to the print
dump routine (PRTDUMP). j,OCOSSin
g
>
Retrieve the member name or
module name and, if specified,
the CSECT name.
2 If starting and ending addresses
aie specified, check validity and
convert to hexadecimal.
3 Locate the file.
A. Open the file.
B. Find the CSECT. (See Diagram 10-6 for details.)
4 Dump the file.
A. Read the file.
(See Diagram 10-7 fer detai!s.)
B. Print the file.
(See Diagram 10-8 for details.j
Label Ref Notes
DUMPREC If all CSECTs are requested, return
control to step 3. When the request
DUMPERR is satisfied, read another control
record (see Diagram 10-2, Step 4). I I DMPNTALL SCANKEYl DECODE1 PACKVAL INVEREP2 DMPCSECT PREOPl..iB STSTART GORDTXT RDTXT
PRTDUMP PACKADDS PACKADDE Module Label Ref READINP I I I I Diagram 10-3. DUMP Control Record Processing Chapter 10. The ZAP Service Program 199
Input Processing Output
1 Process the NAME control record. UF A. Retrieve the member name
CDBUF
or module name and the INAME I CSECT name, if specified.
MEMNAME
B. Locate the file. CSECTNAME
1. Open the file. 2. Find the CSECT.
(See Diagram 10·6 for . details.) READINP 2 Process the BASE control record.
CDBUF IT A. Check for valid control record. I BASE I B. Retrieve the address, convert
it to hexadecimal digits, and ESDADD compare it to the desired CSECT. I I D ESDLEN I I READINP Notes Module Label Ref Notes Module Label Ref
1 of digits, issue the message
A. Retrieve the member name or DMSZAP INAMEREC module name and the CSECT name,
if specified, and check for errors. INVEREP If errors are found, issue the
message DMSZAP192W ERROR - ODD NUMBER OF DIGITS - SET NO GO SWITCH and continue by reading another control record. DMSZAP190W INVALID CON· TROL RECORD OR NO GO SWITCH SET If the file is a MODULE file created
with the NOMAP option, accept
the BASE address and continue by
Continue by reading another control reading another control record_
record. If the file is a LOADLIB or TXTLIB CKBASEl B. If no errors are found, open the DMSZAP NOCSECTl file, or a MODULE file not created
specified file and locate the desired PREOPLIB with the NOMAP option, compare CSECT. Continue by reading READINP the BASE address to the CSECT another control record. address. If there is a match, con-
tinue by reading another control 2 record.
A. Check that the NAM E control re- DMSZAP BASEREC If the CSECT address is not equal INVEREP2 cord has been entered. If not, issue INVEREP to the BASE address, issue the
the message message DMSZAP190W INVALID CON- DMSZAP195W BASE VALUE TROL RECORD OR NO GO INVALID - SET NO GO SWITCH SET SWITCH Continue by reading another control Continue by reading another
record. control record.
B. Retrieve the BASE address, check DMSZAP CKBASE it for accuracy, and convert it to DECODEl hexadecimal. PACKVAL If the address is not an even number INVEREP2 Diagram 10-4. NAME and BASE Control Record processing 200 IBM VM/370 Service Routines Program Logic
Previous Page Next Page