Input Processing Output
1 Close the library or module, if
open. G 2 Locate the library or module and :> check the attributes. <:1 3 Find the member (if library).
4 Find the CSECT (if module).
MEMNAME
L1BNAMEl
libnamel
libname2 Iibname3 -
Notes Module Label Ref Notes Module Label Ref
1 Close input module and library files, if DMSZAP PREOPLIB DMSZAPOO2E FI LE 'fn ft' NOT open. FOUND CLOSELIB and terminate processing. NOMORE 2 If MODU LE was specified, locate the DMSZAP STFDEF module name and search for the mod· ule. If the module is found, check the
attributes and if they are valid, go to Step 4. Otherwise, issue one of these
error messages: DMSZAP210E FILE 'fn ft' IS ON A L1BRO READ/ONL Y DISK 3 When a library is found, read the first DMSZAP OPENFILE record. If the header record or the
pointer to the directory is invalid, issue PREOPLB4
the message DMSZAP056E FILE 'fn ft' CON- INVFORM TAINS INVALID RECORD FORMATS DMSZAP208E FILE 'fn ft' IS NOT L1BNTV Otherwise, locate the directory record READLIB VARIABLE RECORD FORMAT and search for the member name. If the If the module cannot be found, issue PREOPLB3
file is a CMS-only (not OS) TXTLIB iCHKMEM file and the member name cannot be
the message found, search for the CSECT name. If iCHKCSECT DMSZAPOO2W FILE 'fn ft' NOT PREOPLB5
FOUND INVEREP2 and read another control record. Ig· a member name or CSECT name is
found, go to the READCESD routine
to find a CSECT record.
nore all control records until the next
NAME, DUMP, or END control record.
4 If the file is a MODULE, compute the DMSZAP CHKLDTBL
length of the module and its starting If LOADLIB or TXTLIB was specified, STFDEF locate the first library name and search
for the member. If the member is
found, check the attributes and if they
are invalid, issue one of these messages: DMSZAP210E FILE 'fn ft' IS ON A L1BRO READ/ONL Y DISK and ending addresses. Determine if a NOTABLE
map is present and, if not, that no INVEREP2 CSECT name was specified, then exit. If a CSECT name was specified, issue
the message CHKLOCST DMSZAP246W NO LOADER TABLE PRESENT FOR MOD- ULE 'fn' SET NOGO SWITCH DMSZAP208E FI LE 'fn ft' IS NOT L1BNTV VARIABLE RECORD FORMAT then exit. If a module map is present,
locate the map record and read it. If DMSZAPOO7E FILE 'fn ft' IS NOT FILENTF the map record cannot be found, issue FIXED, 80 CHAR. RECORDS the message
Otherwise, go to Step 3 after issuing MEMFND
the message DMSZAP056E FI LE 'fn ft' CON· INVFORM TAINS INVALID RECORD FORMATS DMSZAP751I MEMBER FOUND IN L1BRARY'fn' Otherwise, locate the CSECT specified LDRLOOP or the first CSECT in the map, and If the library cannot be found, issue the PREOPLB3 determine its length, and return control
message to caller. If the CSECT specified cannot FNDCLNTH DMSZAPOO2W FI LE 'fn ft' NOT INVEREP2 be found, issue the message INVEREP2 FOUND DMSZAP194W CSECT NOT FOUND and locate the next library name and L1BNTFDl IN 'fn ft' - SET NO GO SWITCH execute Step 2 again. If none of the and read another control record.
libraries specified can be found, issue
the message
Diagram 10-6. opening the File 202 VM/370 Service Routines Program Logic
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
Previous Page Next Page