1 SET Modifies the characteristics of one or more files. It handles all attributes which 'SET FILE' can't handle. Format SET file-spec[,...],@file 2 Parameters file-spec[,...],@file Specifies one or more files to be modified. If two or more files are specified, separate them with commas. A lsit of files may be used by specifying @file. Thus, an output file generated by a DFU SEARCH command can be used to be processed with SET. Wildcard characters are allowed in the file specifications. 2 Qualifiers /ACCESS_DATE /ACCESS_DATE=date /NOACCESS_DATE Controls whether a new file access date is assigned to the specified files. Specify the date according to the rules described in Chapter 1 of the VMS DCL Concepts Manual. Absolute date keywords are allowed. /ATTRIBUTE_DATE /ATTRIBUTE_DATE=date /NOATTRIBUTE_DATE Controls whether a new lats attribute change date is assigned to the specified files. Specify the date according to the rules described in Chapter 1 of the VMS DCL Concepts Manual. Absolute date keywords are allowed. /BACKUP_DATE /BACKUP_DATE=date /NOBACKUP_DATE Controls whether a new backup date is assigned to the specified files. Specify the date according to the rules described in Chapter 1 of the VMS DCL Concepts Manual. Absolute date keywords are allowed. Use of this qualifier requires ownership of the file or access control. /BADACL /BADACL /NOBADACL Sets or resets the 'BAD ACL' flag in the file header. This enables deletion of a file with a corrupted ACL. /BCK /BCK /NOBCK Clears or sets the file's nobackup bit. (/BCK clears the bit, /NOBCK sets the bit). /BUCKETSIZE /BUCKETSIZE=size Sets a new value for the bucket size in the file header. /CONFIRM /CONFIRM /NOCONFIRM (default) Controls whether a request is issued before each individual SET operation to confirm that the operation should be performed on that file. When the system issues the prompt, issue any of the following responses: YES NO QUIT TRUE FALSE (CTRL/Z) 1 0 ALL /CONTIGUOUS_BEST_TRY /CONTIGUOUS_BEST_TRY /NOCONTIGUOUS_BEST_TRY Sets or resets the 'CONTIGUOUS_BEST_TRY' bit in the file header. /CREATION_DATE /CREATION_DATE=date /NOCREATION_DATE Controls whether a new creation date is assigned to the specified files. Specify the date according to the rules described in Chapter 1 of the VMS DCL Concepts Manual. Absolute date keywords are allowed. Use of this qualifier requires ownership of the file or access control. /DIRECTORY /DIRECTORY /NODIRECTORY Sets or resets the directory attribute of a file. This qualifier allows to set the directory bit of a file which was mistakenly reset by the 'SET FILE/NODIRECTORY' command. If it is done on a non- directory file, then access to that directory will give a 'BADIRECTORY' error. /EBLOCK /EBLOCK[=block] This qualifier will reset the end-of-file mark to the highest block allocated if no block has been specified. Otherwise the end-of-file mark will be set to the specified block. /EBYTE /EBYTE[=byte] This qualifier will set the end-of-file byte mark to the highest byte if it has not been specified. Otherwise, the end-of-file byte mark will be set to the specified byte. /EXPIRATION_DATE /EXPIRATION_DATE=date /NOEXPIRATION_DATE Controls whether an expiration date is assigned to the specified files. Specify the date according to the rules described in Chapter 1 of the VMS DCL Concepts Manual. Absolute date keywords are allowed. Use of this qualifier requires ownership of the file or access control. /IDENT /IDENT=identifier or UIC Modifies the file-owner. This command can also be used on open files (such as INDEXF.SYS). /IDENT cannot be combined with /OWNER_UIC /IGNORE /IGNORE=INTERLOCK Set the file attributes even if the file is open or locked. /LOCKED /LOCKED /NOLOCKED This qualifier will lock a file for future use. Nothing else can then be done with the file, until it is unlocked (which can also be done with the VMS 'UNLOCK' command. /LOG /LOG (default) /NOLOG Controls whether the SET command displays the file specification of each file after the modification is made. /MAXREC /MAXREC=record Sets a new value for the maximum record number in the file header. /NOMOVE /NOMOVE /NONOMOVE Disables or enables the MoveFile attribute. /ORGANIZATION /ORGANIZATION=keyword The following keywords are used as parameters for the ORGANIZATION qualifier: DIRECT, INDEXED, RELATIVE and SEQUENTIAL. This will allow to modify the file organization type in the file header. Of course this won't change the real organization of the file. /OWNER_UIC /OWNER_UIC=uic or identifier Modifies the file-owner. This command can also be used on open files (such as INDEXF.SYS). /OWNER_UIC can not be combined with /IDENT. /RECATTRIBUTES /RECATTRIBUTES=keyword The following keywords are used as parameters for the RECATTRIBUTES qualifier: NONE, FORTRAN, IMPLIED, PRINT and NOSPAN. This will allow to modify the file's record attributes in the file header. NONE, FORTRAN, IMPLIED and PRINT are mutually exclusive, but can be used in combination with NOSPAN. When NOSPAN is omitted SPAN is assumed (the default is to allow records to cross block boundaries). /RECSIZE /RECSIZE=size Sets a new value for the record size in the file header. /RECTYPE /RECTYPE=keyword The following keywords are used as parameters for the RECTYPE qualifier: FIXED, STREAM, STREAMCR, STREAMLF, UNDEFINED, VARIABLE and VFC. This will allow to modify the file's record type in the file header. /REVISION_DATE /REVISION_DATE=date /NOREVISION_DATE Controls whether a revision date is assigned to the specified files. Specify the date according to the rules described in Chapter 1 of the VMS DCL Concepts Manual. Absolute date keywords are allowed. Use of this qualifier requires ownership of the file or access control. /RVCOUNT /RVCOUNT=count Sets a new value for the revision count in the file header. /UPDATE /UPDATE /NOUPDATE (default) Normally the file's revision date will be updated after any modification to it. SET however disables this update (otherwise, the REVISION date could not be set). Specify this qualifier if the revision date must be updated. /VERSION_LIMIT /VERSION_LIMIT=limit Change the file's version limit. Can be used with /IGNORE=INTERLOCK to change the version limit of an open file. However: this will only work when the filename specified is the highest existing version of that file (this will be automatic when the version limit is not specified on the command line). The specified version limit must be between 0 and 32767. This command has no effect on directory files. /VFCSIZE /VFCSIZE=size Sets a new value for the VFC size in the file header. This value will only be used with the VFC record type. 2 SPAWN Spawns a subprocess. 2 UNDELETE The Undelete command recovers deleted files. It is done as safely as possible. If undelete discovers that the file header or blocks of the deleted file have been reused, the undelete process will stop. The /FILE, /IDENTIFIER or /OWNER qualifier can be used to select specific files. The /LIST qualifier can be used to generate a list of recoverable files without actually undeleting files. If a matching filename is found undelete will ask for a confirmation before undeleting the file. Multiple files can be undeleted with just one UNDELETE command. After a successful undelete the file will be entered in the original directory if possible or in the [SYSLOST] directory. NOTE: The volume (set) will be locked for other users during the undelete command unless the /LIST qualifier is used. Syntax: UNDELETE device/Qualifiers 3 Qualifiers /IDENT /IDENT=identifier Select file by identifier. This qualifier cannot be used in conjunction with /OWNER. /FILE /FILE=filename Select file by filename. Wildcards may be used in the filename. If the /FILE qualifier is omitted DFU will use *.*;* as the filename. /LIST /LIST(=output_file) Generate a list of recoverable files. This command will not lock the volume, and will not undelete any file. /MARKED Select only files marked for delete. /OWNER /OWNER=uic Select file by owner uic. This qualifier cannot be used in conjunction with /IDENT. /STATISTICS /STATISTICS /NOSTATISTICS (default) Controls whether CPU and I/O consumption of the command are shown. 2 VERIFY The Verify option provides a function equivalent to ANALYZE/DISK, but many times faster. Verify will report files with invalid backlinks, lost files, and blocks which are allocated by more than 1 file. Also, the BITMAP and QUOTA files are checked. The /FIX qualifier allows some basic repair actions without locking the disk. The /REBUILD qualifier will rebuild INDEXF.SYS, BITMAP.SYS and QUOTA.SYS if necessary. Note that /REBUILD will lock the disk for a short period of time. Syntax : VERIFY device(/OUTPUT=filename/LOCK/FIX/REBUILD) 3 Qualifiers /APPEND /APPEND=filename Same as /OUTPUT, but the output will be appended to the file if it already exists. Thus, output from multiple DFU commands can be put in the same output file. If the file does not exists it will be created. /DIRECTORY_SCAN This optional qualifier directs DFU to make a full directory scan. This allows better detection of some cases of lost files, and detection of some directory corruptions. Use /FIX to repair such errors. Warning: using /DIRECTORY_SCAN can take several minutes /FIX /FIX /NOFIX (default) This qualifier repairs the following errors: o Deletes files marked for delete o Moves lost files and directories to [SYSLOST] o Repairs a wrong backlink for VMS$COMMON.DIR (system disk) The /FIX qualifier does not lock the disk! /LOCK /LOCK /NOLOCK (default) Locks the volume for allocation. To get a consistent view of the disk one must stall all allocation changes of the disk. Otherwise VERIFY may report errors which are caused by concurrent disk activity during execution of the VERIFY command. A tradeoff is that the disk is locked for the duration of the VERIFY command. /OUTPUT Redirects the output from verify to a file. /REBUILD /REBUILD /NOREBUILD (default) This qualifier repairs structure errors and mismatches in INDEXF.SYS, BITMAP.SYS and QUOTA.SYS. Note that /REBUILD will temporarily lock the device for other users. /STATISTICS /STATISTICS /NOSTATISTICS (default) Controls whether CPU and I/O consumption of the command are shown.