Skip to main content

Sharing files in a same run unit

  • February 15, 2013
  • 0 replies
  • 0 views

This article explains how to share files in the same run unit using COBOL.

Problem:

My application is made with COBOL modules that open the same physical file and all modules are included in a same run unit. For some reason, the file status 9/065 is displayed during the running of some modules. Why is this?

Resolution:

This is happening because it is necessary to modify the values of options on the File Handler Configuration file.

echo "[XFH-DEFAULT]" > my.cfg

echo "RUNITLOCKDETECT=OFF" >> my.cfg

echo "OPENINPUTSHARED=ON" >> my.cfg

EXTFH=./my.cfg

export EXTFH

Old KB# 13988

#COBOL
#netexpress
#AcuCobol
#ServerExpress
#RMCOBOL