SET FMODE
Purpose
Use the FMODE option to change the file mode of the file being edited.
Operands
- fm
- is the new file mode. You can specify a file mode letter (A through Z) or a file mode letter and number (0-6). If you specify only a file mode letter, the existing file mode number is used.
Initial Setting
Current file mode of file being edited.
Usage Notes
- The specified file mode is used the next time you enter FILE or SAVE. If the file being edited has been written to disk or directory before, that copy of the file remains unchanged.
- If the disk or directory the file mode specifies already contains a file with the same file name and file type and you enter FILE or SAVE, the editor displays an error message.
- If the file mode specified is that of a read-only minidisk and you enter FILE or SAVE, the editor displays an error message.
- If you are editing a member of a MACLIB, this command changes the mode of the member.
- If you are editing a byte file system (BFS) file, the initial setting for FMODE is all blanks. SET FMODE is allowed if you are editing a BFS file. However, it is not used until SET NAMETYPE CMS is in effect.
Messages and Return Codes
- 048E
- Invalid filemode mode [RC=24]
- 069E
- Filemode mode not accessed [RC=36]
- 520E
- Invalid operand: operand [RC=5]
- 545E
- Missing operand(s) [RC=5]
- 555E
- File fn ft fm already in storage [RC=4]
where return codes are:
- 0
- Normal
- 4
- File already in storage
- 5
- Invalid or missing operand(s)
- 6
- Subcommand rejected in the profile due to LOAD error, or QUIT subcommand has been issued in a macro called from the last file in the ring
- 24
- Invalid file mode
- 36
- Corresponding mode not accessed
