FUSUTIL EXIST

You can use the FUSUTIL EXIST program to determine whether a file exists on a platform.

Note: On z/OS, it also checks whether the file is in exclusive use by another program.

The program can be entered in one of the following two ways:

  • FUSUTIL EXIST name_of_file_to_be_checked
  • FUSUTIL E name_of_file_to_be_checked
Note: The EXIST function can be defined by the word EXIST or the character E.

At least one space must be added after the program name FUSUTIL and before the name of the file to be checked. The file to be checked must be defined; otherwise, the request fails and an error is displayed.

The file name must be the fully qualified file name with all directories and qualifiers defined. On systems such as UNIX where the file system is case sensitive, the file name must exactly match the file name in the file system.

For example, the following commands check whether the file mvsfile.acct.Y2004.JAN exists. On z/OS, they also check whether an exclusive ENQ exist on the file. If yes, the request fails as if the file does not exist.

fusutil E mvsfile.acct.Y2004.JAN

fusutil EXIST mvsfile.acct.Y2004.JAN