Version 4.2.6 for Mainframes (Update)
 —  Operations  —

Natural in Batch Mode under CMS

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:


Running Natural in Batch Mode under CMS

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 - Primary Report Output

CMPRINT is used for the primary output report resulting from DISPLAY, PRINT and WRITE statements in a Natural program.

CMSYNIN - Primary Input

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.

Top of page