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
I Input I i,a_in
g
I :> LJr==:' g CDBUF ESDADD ESDLEN CDBUF I Process the VER (or VERIFY) or REP control record.
A. Check for validity of the record.
B. Retrieve the displacement and
data and check validity. C. Read the file and perform the
requested operation.
(See Diagram 10-8 for details.)
2 Process the END control record.
A. Issue ending message.
B. Close input file. C. Return to eMS. Notes Module Label Ref Notes
1 and return control to READINP A. If a NAME control record has not DMSZAP GOODTHRE
to read another control record.
been enetered or was invalid, issue
the message INVEREP Convert the data to hexadecimal
and add the BASE value to the DMSZAP190W INVALID CON- I I TROL RECORD OR NO GO SWITCH SET and return control to READ!NP to
read another control record. Ignore
all VER or REP control records displacement. Check that the dis-
placement plus the data length
will fit within the CSECT. If not,
issue the message DMSZAP191W PATCH OVER- LAPS - SET NO GO SWITCH until the next NAME control record and return control to READINP. is encountered. If this is a REP control record and INVEREP2 C. Go to the RDTXT routine to per-
form the operation, then return
the NO GO swtich is on, issue the control to READINP. message DMSZAP193W PRECEDING 2 CONTROL RECORD FLUSH- ED
A. Issue the message
and return control to READINP to
read another control record. DMSZAP7501 ZAP PROCESSING COMPLETE B. Check the displacement for validity DMSZAP GOOK and convert into hexadecimal digits. SCANKEY1 B. Close the INPUT file, if it is open,
and free buffer space. DECODE1 PACKVAL Retrieve the data field, remove com- DMSZAP SCANKEY1 C. Return to CMS. mas from the field, and check that
the data are an even number of bytes. CKCOMMA2 If not, issue the message DMSZAP192W ERROR - ODD CKC0MMA3
NUMBER OF DIGITS - SET INVEREP2 NO GO SWITCH Module DMSZAP I I DMSZAP DMSZAP DMSZAP DMSZAP Diagra. 10-5. VER/VERIFY or REP and END Control Record processing Label Ref
EQLNTH PACKDAT I'NVEREP21 I GOVER RDTXT COMEND INVEREP4 CLOSEINP CLRSPCE NOMORE Chapter 10. The ZIP Service proqraa 201
Previous Page Next Page