UPDATE INC STK PRINT STOR specifies that columns 73-75 contain a three-character
label field, and that the sequence number is a five-digit
value in columns 76-80. !Q!g: Source files sequenced by the eMS editor are
sequenced, by default, with five-digit sequence numbers.
increments sequence numbers in columns 73 through 80 in
each record inserted into the updated output file,
according to specifications in UPDATE control statements.
puts asterisks (********) in the sequence number field of
each updated record inserted from the update file.
specifies that fn2, ft2, and fm2 describe an
control file for applying multiple update files
source input file. (See "The CTL option.") NQ!gl The CTL option implies the INC option.
update
to the
specifies that a single update file is to be applied to
the source input file.
stacks information from the control file in the C"S console stack. STK is valid only if the CTL option is
also specified and is useful only when the UPDATE command
is executed in an EXEC procedure.
does not stack control file information in the console
stack.
displays warning messages at the terminal whenever a
sequence or update control card error is discovered. (Such warning messages appear in the update log, whether
they are displayed at the terminal or not.)
suppresses the display of warning messages at the
terminal. However, error messages that terminate the
entire update procedure are displayed at the terminal.
places the update log file on disk. This file has a file
identifier "fn UPDLOG", where "fn" is the filename of the
file being updated.
prints the update log file directly on the virtual
printer.
specifies that the source input file is to be read into
storage and the updates performed in storage prior to
placing the updated source file on disk. This option is
meaningful only when used with the CTL option since the
benefit of increased processing speed is realized when
processing multiple updates. STaR is the default when
CTL is specified.
specifies that no updating is to take place in storage. NOSTOR is the default when single updates are being
applied (CTL is omitted from the command line). 202 eMS Command and Macro Reference
UPDATE UPDATE CONTROL The UPDATE control statements let you insert, delete, and replace source records, as well as resequence the output file.
All references to the sequence field of an input record refer to the
numeric data in columns 73-80 of the source record, or columns 76-80 if NOSEQA is specified. Leading zeros in sequence fields are not required.
If no sequence numbers exist in an input file, a preliminary UPDATE with
only the './ S· control statement can be used to establish file
sequencing.
sequence numbers are checked while updates are being applied; an
error condition results if any sequence errors occur in the update
control statements, and warnings are issued if an error is detected in
the sequencing of the input file. Any source input records with a
sequence field of eight blanks are skipped, without any indication of a
sequence error. Such records may be replaced or deleted only if they
occur within a range of records that are being replaced or deleted
entirely and if that range has limiti with valid sequence numbers.
There is no means provided for specifying a sequence field of blanks on
an UPDATE control statement.
All UPDATE control statements are identified by the characters './' in
columns 1 and 2 of the 80-byte record, followed by one or more blanks
and additional, blank-delimited fields. Control statement data must not
extend beyond column 50. -- resequences the updated source output file
in columns 73-80 (if SEQ8 is specified), or in columns 76-80 with the
label placed in columns 73-75 (if NOSEQ8 is specified). The format of
the SEQUENCE control statement is: .--- -, I ./ S r seqstrt [seqincr [label]]] I L
seqstrt
seqincr
label _____________________________________________ -J is a one-to eight-digit numeric field specifying the
first decimal sequence number to be used. The default
value is 1000 if SEQ8 is specified and 10 if NOSEQ8 is
specified.
is a one-to eight-digit numeric field specifying the
decimal increment for resequencing the output file.
The default is the "seqstrt" value.
is a three-character field to be duplicated in columns
73-75 of each source record if NJSEQ8 is specified.
The default value is the first three characters of the
input filename (fnl).
If you ase the SEQUENCE statement, it must be the first statement in the
update file. If any valid control statement precedes it; the resequence
operation is suppressed. When the SEQUENCE control statement is the
first statement processed, the sequence numbers in the source file are
checked, and warning message DMSUPD210W is issued for any errors.
Section 2. CMS Commands 203
Previous Page Next Page