I I o Control Statements Notes Module
1 An update card is read and checked. If DMSUPD
an invalid control card is read, the
message
DMSUPD207W INVALID UPDATE FILE CONTROL CARD
is issued. The value of R ETCOD E is set
to i2, if it was not previously set hi 9 hSi'1 I Processing continues ignoring the
invalid card.
2 DMSUPD checks the resequence card. I DMSUPD If the resequence card is not the first
card in the update file, the message
DMSUPD184W './S' NOT FIRST CARD IN UPDATE FILE -IGNORED is issued. The value in RETCODE is set
to 12 if it has not been set higher prev-
iously. The './S' card is ignored and
processing continues. If an invalid character is specified in one
of the sequence fields, the message
DMSUPD185W INVALID CHAR IN SEQUENCE FIELD 'xxxxxxxx'
is issued. The value of RETCODE is set
to 12 if it was not set higher previously.
The' ./S' card is ignored and processing
continues.
if the specified sequence increment is zero, the message
DMSUPD182W SEQUENCE INCRE- MENT IS ZERO is issued. The value of RETCODE is
set to 8 if it has not been set higher previously. Processing continues and
the file is resequenced with a sequence
increment of zero.
Processing Read update control statement.
2 Handle the resequence control
statement.
3 Handle the insert control statement.
(See Diagram 7·11 for details.)
4 Handle the delete control statement. n
5 Exit when all update control cards
are processed.
if singie update. j. t> I Diagram
7-11
!f multiple update. Label Ref SINGUPD FCTRSEQ I RSEQERR I.· ..... Diagram
7-7 Notes If no errors are found, the sequencing
is set to 5 or 8 characters depending
on the options specified (SEQ8 or NOSEOS). The UPDFLAG is set for
resequencing and the next update con-
trol card is read (UPDREAD). 3 See Diagram 7:", 4 The update control card is checked.
The indicated cards are removed. The
control statement and the message DELETING ...
are sent to the UPDLOG file. If the
delete is being performed in storage,
the records in storage are rechained,
eliminating the deleted records.
Updated
Assembler
Source
Program I Update Log
Module
DMSUPD
DMSUPD Label RSEQDEF RSEQFIN FCTINST I ,ELTINE XDELE
5 When all the update control cards are DMSUPD UPDREAD INVCHAR ZERSEQ processed, the UPD READ (read)
routine takes its error exit (UPDFERR)
The UPDFERR routine branches to
the INPUTRD routine on an end-of-file
condition to flush (write out) the rest
of the input source file if the update
was not performed in storage. If the XDELE
update was performed in storage, and
resequencing is requested, a logical
replace is done on each line in the file.
The error exit (lNPFERRris taken
from the INPUTRD routIne. The INPFERR routine closes the updated
file and the input file. If processing a
control file (multiple update). control
returns to CTLCONT. Otherwise, the
single-level update is complete and
control is returned to CMS (RRETURN
exit routine).
Diagra. 7-9. Single Update Procedure Ref
Chapter Procedures for Generating and Updating V8/370 139
Input Processing Output IllJr 1 r INSERT Check validity of INSERT control
control statement.
statement
2 Insert sequence numbers. I Source I r 3 Check sequencing of the input file.
Program
4 Insert the update. I Notes Module Label Ref NotlS Module label Ref
1 The INSERT card is checked. If invalid, DMSUPD FCTINST message are sent to the 'UPDLOG'
the message file. DMSUPD207W INVALID UPDATE INVUPCD FILE CONTROL CARD If the sequence errors are introduced
in the output file, the message
is issued. The value of RETCODE is
set to 12 if was not set higher previous-
ly. The invalid card is ignored and
processing continues.
DMSUPD174W SEQUENCE ERROR INTRODUCED IN OUTPUT FILE 'xxx' TO 'xxx'
is issued. The value of RETCODE is
2 If requested, the sequence numbers are DMSUPD FCTREPL
put in the inserts. Otherwise, the
set to 8 if it was not set higher prev-
iously. Processing continues. field contains If sequence overflow occurs while WOVF cards are being inserted, the message If a specified sequence number is not UPDSERR DMSUPD176W SEQUENCE OVER- found, the message FLOW FOLLOWING SEQUENCE
DMSUPD186W SEQUENCE NUMBER NUMBER 'xxx'
'xxx' NOT FOUND is issued. The value of RETCODE is issued. The value of RETCODE is is set to 8 if it was not previously
set to 12 if it has not been set higher set higher. Processing continues.
previously. The invalid card is ignored
and processing continues. When the appropriate cards are
successfully inserted in the file, 3 If the input file sequence numbers are DMSUPD INSEQW control returns to the read routine
out of order, the message to read the next control card. DMSUPD210W INPUT FILE SEQ- UENCE ERROR 'xxx'TO 'xxx'
is issued. The value of RETCODE is
set to 4 if it was not set higher previous-
ly. Processing continues.
4 DMSUPD inserts the cards. The control DMSUPD INSLOOP statement and the INSERTING ... Diagram 7-10. Inserting Updates 140 IBM VM/370 Service Routines Prograa Logic
Previous Page Next Page