This document contains special considerations that refer to Natural in batch mode under the operating system CMS.
For considerations that refer to Natural in batch mode generally, see:
If you invoke Natural with the dynamic parameter
BATCH
, batch mode is entered.
Natural does not communicate with the terminal, but takes its input from
the dataset whose DD name is CMSYNIN
and sends its output to the
dataset whose DD name is CMPRINT
. These datasets are described
below.
FILEDEF
commands for these DD names must be
issued before invoking Natural in batch mode.
If BATCH
is specified in combination with other
dynamic parameters, BATCH
must be the first parameter as
shown in the example below:
FILEDEF CMPRINT PRINTER FILEDEF CMSYNIN DISK BATCH INPUT A NATvr BATCH,FNAT=(10,13),FUSER=(132,12)
In this example, vr
stands for
the current version and release number.
For more examples, see NATBATCH EXEC
and NATINPL
EXEC
.
CMPRINT
is used for the primary output report resulting
from DISPLAY
,
PRINT
and
WRITE
statements in a
Natural program.
CMSYNIN
is used for the primary input file that contains
Natural commands, Natural source programs, and (optionally) data to be read by
INPUT
statements during
the execution of Natural programs.
The number of characters actually processed per line is determined by
the current setting of the profile parameter SL
. This setting
applies for both source statement and execution time input data. This enables
identification or sequence numbers to be placed in the rightmost columns of
every record if desired.