cobol2.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Switch R (↑ RTS Switches)
 Key Details                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Switch:       R
 
  Function:     Attempts a READ on a file of any organization which is
                OPEN for INPUT or I-O and which has no file status item
                declared. If the record is found to be locked, then the
                READ is repeated at intervals until the record becomes
                available.
 
  Warning!      This feature makes possible a "deadly embrace". One
                program may have locked record A and be trying to
                read record B, while another program has locked
                record B and is trying to read record A. Should this
                happen you will probably have to reboot your system.
 
  Default:      Off unless the program is compiled with the RM directive.
                                    -♦-