Allows you to identify the recoverable facility that controls active recovery units on the file. The SET FILE command is not supported for remote files. You must use the SET FILE command from the system where the file is located. For more information, see the RMS Journaling documentation. Format SET FILE/RU_FACILITY=ru-facility data-filespec[,...]
1 – Parameters
ru-facility Specifies the number or name of a recoverable facility. It can be an integer from 0 through 255, or it can be the name of an VSI-registered recoverable facility. Facility numbers 1 through 127 are reserved by VSI; facility numbers 128 through 255 are available for user-written recoverable facilities. RMS is recoverable facility 1; specifying the number 1 is equivalent to using the text RMS. The number 0 corresponds to no recoverable facility. Currently, the only VSI-defined recoverable facility is 1 (RMS). The recoverable facility that you specify is an input parameter that is used only to open the file; it does not actually modify any file attributes. data-filespec[,...] Specifies the file that is to be modified. If you specify more than one file, separate the file specifications with commas. The asterisk (*) and the percent sign (%) wildcard characters are allowed. The file specification cannot include a node name, since the SET FILE command is not valid for network access.
2 – Description
The SET FILE/RU_FACILITY command allows you to identify the recoverable facility that controls active recovery units on the file. You can use any other SET FILE qualifier with the /RU_ FACILITY qualifier. When a data file has active recovery units and RMS journaling cannot resolve the recovery units (for example, if the recovery unit journal is unavailable), the data file cannot be opened or deleted. The presence of active recovery units prevents you from unmarking (or marking) a file for any journaling type. With the SET FILE/RU_FACILITY/RU_ACTIVE command, you can clear the designated recoverable facility that controls active recovery units for the data file. CAUTION When you clear the RU_FACILITY attribute (with the command SET FILE/RU_ACTIVE=0/RU_FACILITY=1), the data in the file is likely to be in an inconsistent state. Do not use the data file unless you can ensure that the data is consistent. After clearing the RU_ACTIVE attribute, you can unmark the file for journaling, delete the file, and re-create a consistent file using a backup copy. You can determine the recoverable facility that controls active recovery units (if any) for the file by entering the DCL command DIRECTORY/FULL or DUMP/HEADER. You can use the ANALYZE/RMS_ FILE/RU_JOURNAL command to determine the state of any active recovery units.
3 – Examples
1.$ SET FILE/RU_FACILITY=1/NORU_JOURNAL/NOAI_JOURNAL/LOG SAVINGS.DAT %SET-I-FILUNMARKAI, $DISK1:[PERSONAL]SAVINGS.DAT;1 unmarked for RMS after-image journaling %SET-I-FILUNMARKRU, $DISK1:[PERSONAL]SAVINGS.DAT;1 unmarked for RMS recovery-unit journaling %SET-I-MODIFIED, $DISK1:[PERSONAL]SAVINGS.DAT;1 modified $ DELETE SAVINGS.DAT;* This example shows the use of the /RU_FACILITY qualifier to allow SET FILE access to a data file. The SET FILE command identifies the recoverable facility holding the file and it also unmarks the file for recovery unit and after-image journaling. After these steps, it is then possible to delete the data file. CAUTION If it becomes necessary to use the /RU_FACILITY qualifier because of active recovery units, the data in the file may be inconsistent. VSI recommends that you not use the data file unless you can verify that the data is consistent. VSI also recommends that you make a new copy of the file using the Convert Utility and that you use the converted copy in place of the original. 2.$ SET FILE/RU_FACILITY=RMS/RU_ACTIVE=0 SALES.DAT In this example, the recoverable facility for the file SALES.DAT is identified as RMS by the /RU_FACILITY=RMS qualifier, and the RU active file attribute (which indicates active RMS recovery units) is cleared by the /RU_ACTIVE=0 qualifier. If the file SALES.DAT is unavailable due to active recovery units and an unavailable recovery unit journal, you can use this command to gain access to the file. As in the previous example, this operation leaves the data file in an inconsistent state. In general, use this command to delete the data file, then restore the file from a backup copy.