Input I REG 1 PLIST . ZAPCMND I I b Processing -:--1 -> 2 ",,;fi"'. <: ]1 Ii lb 3 If I NPUT filename is specified, locate the file. Verify ZAP command and set up
library table, if libraries are
specified.
request for input. I 4 If I NPUT is not specified, issue a Print the control record if the PR INT option is in effect.
Output
LlBNAMEl libnamel Iibname2 libname3 INFUNC filename ZAP CDBUF CDBUF TABSTRT I OJ 6
5 R"d, '0"",1 moo,d. <: I III t 7 Determine the type of control It: D
record and branch to the proper
subroutine. Notes Module
1 Verify the operands in the ZAP com- DMSZAP mand. If TXTLIB or LOADLIB is
specified, move the library names (up
to three) into LlBNAME1. If no
library name was specified, issue the
message: DMSZAPOO1E NO FILENAME SPECIFIED Other messages that may be issued if
the command line is in error are: DMSZAP014E INVALID FUNC- TION 'function' DMSZAP047E NO FUNCTION SPECIFIED DMSZAP070E INVALID PARA- METER 'param'
2 If options are specified, check for DMSZAP validity. If mutually exclusive options
or invalid options are specified, issue
the message: DMSZAPOO3E INVALID OPTION 'option'
3 If I NPUT filename is specified, move DMSZAP filename into INFUNC. Issue STATE
to locate the file. If this file cannot
be found, the message: DMSZAPOO2E FILE 'fn ft' NOT (See Diagrams 10-3, 10-4, and 10-5 for details.) Label Ref Notes SCAN LINE from the specified INPUT file (RDCARD2 routine). Save the control STLIB record in CDBUF. 6 Print the control record on the SYSOUT printer if the PRINT option
is in effect.
7 Check the control record for a valid key-
word. If the statement is blank or
the first character is an asterisk, return
control to READINP (step 4). Otherwise, compare the keyword to
keyword tables whose formats are:
bytes 1-8 keyword
bytes 9-12 keyword routine CHKOPT Valid keywords and the diagrams
in which their routines are
described are:
Keyword Diagram DUMP 10-3
NAME 10-4 I NPTOPT BASE 10-4 VER 10-5 FDEFINP VERIFY 10-5 REP 10-5 END 10-5
Module Label RDCARD2 DMSZAP DMSZAP SCANKEYl TABLOOK Ref -I-- FOUND If a match is found, go to the appro-NAMFOUND
priate routine.
4 If I NPUT is not specified, display DMSZAP READINP ENTE R: to request ZAP control If no match is found, issue the message:
records to be entered from the RDCARD DMSZAP201W INVALID CON- INVEREP terminal. TROL RECORD OR NO GO 5 Read the control record either from DMSZAP RDCARD
the terminal (RDCARD routine) or SWITCH SET and return control to READINP (step 4). Diagram 10-2. ZAP Initialization and Control Record Processinq
198 IBM VM/370 Service Routines Progra. Logic
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
Previous Page Next Page