Processing files dynamically created by COBOL

Note: This topic is for QSAM files only.
Enterprise COBOL dynamically allocates a file when all of the following conditions exist:
  • The CBLQDA(ON) runtime option is in effect.
  • A ddname for the file is not explicitly allocated.
  • An environment variable of the same name is not set.
  • The COBOL program opens the file to write to it.

When the file is opened, the attributes specified in your program will be used.

If CBLQDA(OFF) is in effect, an error will be generated.