Notes Module
1 Read a LOADLIB or TXTLIB member DMSZAP record. Check to see if it is an ESD-
type record. If not, re-execute Step 1.
2 If a CSECT name was specified in the I or control record, com- I pare it with the CSECT name(sl in the
ESD record(s). If there is a match, save the starti ng address and length. If there is no
match, issue the message DMSZAP194W CSECT NOT FOUND IN 'fn ft' -SET NO GO SWITCH If no CSECT name was specified in the
NAME or DUMP control record, use
the first CSECT named in an ESD
record. If ALL was specified in a DUMP con-
trol record, use the next CSECT name
encountered in an ESD record. Control then returns to caller. Processing Output
Find ESD record.
! >1 ESD record
A. Read a record.
B. Check for ESD type. u= 2 Match CSECT name (if specified) nb against ESD record, or use CSECT name in ESD record.
Label Ref Notes READCESD pEARCHSD I NOCESD2 ESDADD
ESDLEN
Module Label Ref I Diagram 10-1. Finding the CSECT Chapter 10. The ZAP Service Program 203
Input Processing Output 8 -:------.,> Read the file. 2 If the file is a LOAD LIB or
TXTLlB, check for the desired
TEXT record. I DI> PACKDISP 1 >
Text Record tiE I 3 Locate the desired position within
the record.
4 If DUMP was specified, go to the PRINT routine.
(See Diagram 10-9 for details.) 5 Perform the VER or REP operation .. If the operation is REP, rewrite
the record. Notes Moduie Label Ref Notes
1 Read the next record of the file. If DMSZAP RDTXT the record.
the file is a module, go to step 3. If the operation is VER, compare each
2 If the file is a TXTLlB, check for the DMSZAP RDTXTLIB byte read with the data in the VER
desired record. If not, repeat step 1. control record. If they do not agree, Otherwise, check for valid characters. RDTXTFN[ issue the message If there are no valid characters (that is, if the area is a Define Storage area), I and the operation is VER or REP, issue
the message DMSZAP248W INVALID VER/REP DMSZAP200W VERIFY REJECT
- SET NO GO SWITCH If another record is required, go to
step 1. Otherwise, control returns to DISP - SET NO GO SWITCH ! caller. If there are no valid characters, but the I operation is DUMP, determine the I length of the gap and handle it as a
TEXT record. If the file is a LOAD LIB, check for the DMSZAP RDLDLIB
desired record. When it is found, check for valid characters as with a TXTLIB
and, if valid, read the next record for
the actual text.
3 Determine the position within the DMSZAP record.
4 If the operation desired is DUMP, go DMSZAP to the PR I NT routine to print out lines. PRTDUMP 5 If the operation is REP, replace each DMSZAP j
byte read with the data supplied in the REP control record. When the
end of the record is reached or the
REP operation is completed, rewrite Diagram 10-8. Reading the Text 204 IBM VM/370 Service Routines prograa Logic
Text Record 8 Module Label WRLlB VERLOOP VERIFY1 RDTXEND I , i I I I ! Ref I I I I I I !
Previous Page Next Page