Skip to main content

Problem:

NOT SEEING PARAMETERS ON INPUT FILE defined as STDIN

Resolution:

set command_line_accept=true in the cobconfig file, which is a run-time configuration file.

The run-time configuration file is a text file, which you can edit with your standard text editor. It is an optional file (no error will be issued if it does not exist) with the default name $COBDIR/etc/cobconfig. You can specify a filename for the configuration file by setting the environment variable COBCONFIG; for example:

COBCONFIG=$HOME/myconfig

export COBCONFIG

command_line_accept

Syntax:

set command_line_accept={TRUE|FALSE}

Value:

TRUE or FALSE

If TRUE, the first ACCEPT or READ from STDIN takes the input from the command line.

Default:

FALSE. The first ACCEPT or READ from STDIN takes the input from the user. This provides direct ANSI conformance. You should set this if you want to execute a program that has been generated from convert3 or convert5.

Old KB# 7177