Skip to main content

Problem:

how to read parameters from a file?

Resolution:

To read paramaters from a file, use the INDD compiler directive:

INDD

Causes ACCEPT statements to be read from a specified file.

Syntax:

>>-.---.--.----.--INDD--"fname"------------.><

    -/-    ---- --INDD---------------------

           -NO-

Parameters:

fname Name of file to be read for the specified ACCEPT statements. When this parameter is not specified the name used is SYSIN.

Properties:

Default: NOINDD

Phase: Syntax check

$SET: Initial

Comments:

When INDD is specified, all format 1 ACCEPT statements which either have no FROM option or specify FROM SYSIN (or the mnemonic-name associated with SYSIN) are transformed into READ statements, reading from a file with the specified external filename.

The filename can be mapped onto physical filenames in the same way as other files with external filenames; that is, by using environment variables or the External File Mapper.

****************************************

Old KB# 6990