XEDIT Command

After you log on and enter the CMS environment, you can enter the edit environment. Invoke the editor with the CMS command XEDIT, whose format is:

Read syntax diagramSkip visual syntax diagram Xedit filename filetype

You can also create a different type of file called a byte file system (BFS) file by entering:

Read syntax diagramSkip visual syntax diagram Xedit pathname (NAMetype BFS

If the file does not already exist, the editor creates it in virtual storage.

If the file already exists and has a file mode of A, a copy of that file is brought into virtual storage. Then you can use XEDIT subcommands to change lines in that file. Enter XEDIT subcommands by typing the subcommand and then pressing the Return key. (You can enter XEDIT subcommands in uppercase or lowercase, or a combination of both.)

When a subcommand changes a line, the editor displays or verifies the changed line. The editor also communicates with you by displaying error or information messages. In this chapter, anything the editor displays is enclosed in a box. Subcommands or data you enter are not.

Now let us create a simple file called POEM1 SCRIPT. Enter:
  xedit poem1 script
Because the file is new, the editor responds with the following messages:
  Creating new file:
  XEDIT: