cobol3.hlp (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.
Message RT158 (↑ RTS Messages)
 Key                                       Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Message:      RT158
 
  Text:         Attempt to REWRITE to a line-sequential file
 
  Severity:     Recoverable
 
  Explanation:  You have used the REwrite statement in conjunction
                with a file whose organization is line sequential.
                The REWRITE statement cannot be used with line
                sequential files.
 
  Resolution:   Close the file in error before executing a STOP RUN
                statement to ensure that you do not lose any data from
                it.  Recode your program to make the organization of
                the file to which you wish to do a REWRITE either
                sequential, indexed sequential, or relative.
                                    -♦-