PL!ST __ ____ Conteol ,nteffi ITom DMSITS. 2 Initialize fields and locate the
input file (if one is specified).
(See Diagram 1 ().2 for details.)
Notes
1 Control enters DMSZAP from DMSITS. Register 1 points to a PLiST that
contains the type of file to be operated on, libraries to be used if applicable, __ ...I -, __ ..1. __ 1 .. &. .... _ : .......... + ....... ..J ........ + ..... +- dliU t,;UlIlIUI;) IVI IIltJUL ailU VUl.tJUI. operations.
2 Initialize fields and pointers and
verify input and output options.
Locate the input file if an input file
is specified. Otherwise, request input
from the terminal. Module DMSZAP I DMSZAP 3 Read a control record. Find the DMSZAP routine needed to perform the function
specified by searching a table of
control record keywords.
4 Perform the specified function. At
its end, return control to READINP to read another control record.
5 When the END control record is read, return control to DMSITS. DMSZAP DMSZAP 3 Read a control record. (See
Diagram 10-2 for details.)
4 Perform the specified function.
(See Diagrams 10-3, 10-4, and 10-5 for detai!s.)
5 At end, return control to DMSITS. Label Ref Notes DMSZAP II INITOPEN FDEFINP READINP Diagram 10-1. Overview of the ZAP Prograa Module Label Ref
Chapter 10. The ZIP Service Frogram 197
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
Previous Page Next Page