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
Notes 1 If the update is being performed in
storage, the updated file in storage is
read line by line and a disk file is
created with the filename and filetype UPDATE CMSUT1. The filemode ... . .. , .
specltles tne dISK wnere me Tmal OUI put file resides. The disk file is then
closed. The UPDATE CMSUT1 file is then renamed $fname after the old $fname is erased.
Module DMSUPD 2 If RETCODE is not equal to zero, DMSUPD warning messages were issued during
the update. If update is being done in storage,
create the output disk file.
2 Issue messages as necessary.
Label Ref Notes
RETROO1 ment with the value of RETCODE in register 15. If no warning messages are issued and
the REP option is specified, the '$fname' file is renamed to 'fname', after the old file is erased. If the CTL option is specified and no
update files are found, the message DMSUPD181E NO UPDATE FILES WERE FOUND is displayed and control returns to the CMS command environment with a If warning messages are issued and the WR ETURN
return code of 40 in register 15. NOTERM option is specified, while
the REP option is not, the message DMSUPD1771 WARNING MESSAGES ISSUED (SEVERITY =nn)
is displayed (nn is the value in RETCODE). If warning messages are issued and the REP option is specified, whether or
not the NOTERM option is specified,
the message DMSUPD1771 WARNING MESSAGES ISSUED (SEVERITY = nn) 'REP' OPTION IGNORED is displayed (nn is the value of RETCODE). In either case, control
returns to the CMS command environ·
Diagra. 7-11. Exit processing If no warning messages are issued, and
no errors detected, control returns
to the CMS command environment
with a return code of 0 in register 15.
Updated File Module Label Ref I I I I I I NOUPDAT! Chapter 7. Procedures for Generating and Dpdating '1/370 141
Previous Page Next Page