Skip to main content
Dominique Sacre
Rocketeer
Feb 15, 2013 10:44 PM UTC

Allowing a line sequential file opened extend to be read by other programs.

Problem:

Opening a line sequential file in EXTEND mode will put an exclusive lock on that file by default. In this case, you can't open that file with a Windows utility such as Notepad to view it until the file has been closed.

Resolution:

To get around this, you can code the "sharing with all other" phrase in the select statement:

select logfile assign to "logfile.txt"

    organization is line sequential

    sharing with all other.

Old KB# 4047

#ServerExpress
#AcuCobol
#RMCOBOL
#netexpress
#COBOL