Input filename filetype filemode Notes 1 Six operands should be passed to the
VMFDATE module. The first three
operands are the filename, filetype, and filemode of the input file. The
next three operands are the filename, filetype, and filemode of the output file. 2 If the input file does not exist, control returns to the calling routine.
3 Each time the VMFDATE module is called, it creates an entry in the
VMCNTR L file indicating that an
update was applied. The format of
each entry is: * filename filetype filemode volid date time
The disk label is picked up from the
ADT (Active Disk Table). 4 The UPDATES file is closed and control returns to the calling routine. VFMASM r:hv Module VMFDATE
VMFDATE
VMFDATE
VMFDATE
Processing
Check that the correct number of
operands are passed.
2 Check that the file exists.
3 Create entry in UPDATES file.
4 Close the file. Label Ref Notes
VMFDATE
TEST
Diagra. 7-4. The yftFDATE Progra. 134 IBM VM/370 Service Routines Progra. Logic LF I ... Return to Caller Output I UPDATES file Module I Label Ref
Input Processing Output
[ I I I I I I ur Initialize the update program.
2 Examine input operands and options.
(See Diagram 7-6 for details.)
Notes Module
1 Registers 12, 11, and 9 are set up as DMSUPD
base registers. All indicators are set off.
2 The filename operand is required. DMSUPD
3 DiviSUPD checks that the source input I DMSUPD file exists. If not, the message DMSUPD002E FILE 'fn ft fm' NOT FOUND I is displayed and control returns to the I CMS command environment with a
return code of 28 in register 15. I DMSUPD 4 The DMSUPD module searches for a suitable disk to hold the output files.
First, an attempt is made to place the files on the same disk that contains the
original input. If the input disk is read- only, but is an extension of a readl
write disk, an attempt is made to place the files on that disk. Lastly, an attempt
is made to place the files on the A-disk. If all these attempts fail, the message
DMSUPD037E DISK 'A' IS READI ONLY is displayed and control returns to the CMS command environment with a
return code of 36 in register 15.
5 DMSUPD issues the STATE command DMSUPD
to see if the UPDATE CMSUTl file already exists: it should not exist. If the CMSUTl file exists, the message
DMSUPD024E FILE 'UPDATE CMSUTl fm' ALREADY EXISTS is displayed and control returns to the CMS command environment with a
3 Find the disk that contains the
source file. 4 Determine the disk that will contain the output file. 5 C-heck that needed files exist, 6 If CTL is specified, perform multiple update.
(See Diagram 7-7 for details.)
7 Otherwise, perform single update.
(See Diagram 7-9 for details.)
8 Exit.
(See Diagram 7-11 for details.)
Label Ref Notes -;-1--> Ell llllLI --v DMSUPD return code of 24 in register 15. If the DISK option was specified, an
DMSUPD
old copy of 'filename UPDLOG' is
erased (if one exists). PROCESS I INOFILE If the control file option (CTL) IS specified DMSUPD checks that the
control file exists and continues
processing at the CTLMUL T (mul- I I tiple update) routine. If the control file option is not PROCESS specified, DMSUPD checks that the single update file exists and
continues processing at the single update (SINGUPD) routine.
6 See Diagram 7-7.
7 See Diagram 7-9.
8 See Diagram 7-11. PROCESS Diagraa 7-5. Overview of the Update (DMSUPD) Prograa DMSUPD002E m I V DMSUPD037E DMSUPD024E Module Label Ref INOERASE I I I ILOCTUPD I DMSUPD CTLMULT
DMSUPD SINGUPD DMSUPD RETROO1
Chapter 7. Procedures for Generating and updating f8/370 i35
Previous Page Next Page