cobol1.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.
CBL_CHECK_FILE_EXIST (↑ File Routines)
 Key Details                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Routine:      CBL_CHECK_FILE_EXIST
 
  Function:     Checks whether a file exists and returns details
                if it does.
 
  Syntax:       CALL "CBL_CHECK_FILE_EXIST" USING     file-name
                                                      file-details
                                            RETURNING status-code
 
  Parameters:   file-name              PIC X(n).
                file-details           Group item defined as:
                  file-size              PIC X(8) COMP-X.
                  file-date
                    day                    PIC X COMP-X.
                    month                  PIC X COMP-X.
                    year                   PIC X(2) COMP-X.
                  file-time
                    hours                  PIC X COMP-X.
                    minutes                PIC X COMP-X.
                    seconds                PIC X COMP-X.
                    hundredths             PIC X COMP-X.
                status-code            See Key
                                    -♦-