
 EDI or EDIT is a line oriented editor supplied with IAS,
 RSX-11M, and RSX-11M-PLUS.
 
 Invoke the editor ,EDI, type  EDI  or  EDI filspecifier.
 
 Additional HELP is available by typing HELP EDIT keyword  
 where allowed keywords are:

		COMMAND MODE
		COMMAND SUMMARY
		TEXT
		WRITE
  
 Note that if you type HELP EDIT COMMAND SUMMARY you will get more
 than one screenful of information.
2	TEXT MODE
 	To enter the TEXT INPUT mode from the command mode(after
 any line in the file you are editing) type ,
  
 			I <CR>   
  
 I   without any following string is one form of the INSERT command.
 To enter the COMMAND mode from the TEXT entering mode type carriage
 return twice. <CR> <CR>
  
 	Generally EDI inputs and outputs text a page(BLOCK) at a time.
 In this mode one can access any line of text on the current page.  
 Entered text must eventually be written out to the disk file.  For
 further HELP  type  HELP EDIT WRITE
2	WRITE
 The WRITE command writes out the entire text buffer to the output
 file specifier and clears the text buffer so that the user may
 enter in new text. When one fills the terminal page with text, one
 should write that page onto the output file by typing
 		WRITE <CR>
 in the COMMAND MODE.  Sooner or later, if the text is not written 
 onto the output file, the user text area will overflow and
 several lines of text will be lost.
 
 Once a page has been written out to the output file, via
 the WRITE command, it can not be accessed without executing a 
 TOF command(TOP of FILE).  TOF has the effect of reading all
 the current input file into the output file, closng the output file,
 and finally opening the output file as the new input file.  This
 process creates a new version number file(with the same filename)
 for each TOF which is executed.
  
2	COMMAND
3	MODE
 	If the file referenced by the filespecifier does not exist
 EDI creates the file and enters the TEXT INPUT mode.  All information
 typed in goes into the file.  If the filespecifier exists already,
 EDI opens that file for input and a file of the same name with one
 higher version number for output, and enters the EDITOR or COMMAND
 mode.  One can tell EDI is in the COMMAND mode because it prints
 a  *   in the left hand column to signify that it is ready to 
 accept a command.
3	 SUMMARY

EDI Command Conventions:


     1.  The asterisk (*) can be used in place of any number
         in an EDI command.  It is read as 32,767.

     2.  An elipsis (...) can be used in many search strings to
         identify characters beween the first and last char-
         acter of the string.

     3.  EDI allows the use of abbreviations for commands.

  ADD			A[DD] string
 
         The command ADD string Adds  the  character  string
         indicated to the current line.

  ADD AND PRINT         AP string

       Adds the character string indicated  to  the  current
       line and prints the entire line.

  BEGIN			B[EGIN]

       Sets the current line to the line preceding  the  top
       line  in the file or block buffer.  This command cre-
       ates a copy of the file when it is  invoked  in  line
       mode.

  BLOCK ON/OFF		BL[OCK] [ON] or
  			BL[OCK] [OFF]

       Changes to and from the EDI block mode  of  accessing
       text.

  BOTTOM		BO[TTOM]

       Moves the line pointer to the bottom of  the  current
       block  (in  block  mode) or to the bottom of the file
       (in line mode).

  CHANGE		[n]C[HANGE] /string1/string2[/]...

       Replaces string1 with string2 in the current line n
       times.

  CLOSE			CL[OSE] [filespec]

       Transfers the remaining lines in the block buffer and
       input file to the output file and closes all files.

  CLOSE AND DELETE	CDL [filespec]
 
       Transfers the remaining lines in the block buffer and
       the input file into the output file, closes the output
       file and deletes the input file.

  CLOSE SECONDARY	CLOSES

       Closes the secondary input file.

  CONCATENATION CHARACTER	CC [letter]

       Changes the concatenation character to the  character
       specified.  (The default is &).

  <CTRL/Z>

       Closes files and terminates the editing session.

  DELETE		D[ELETE] [n] or
  			D[ELETE] [-n]

       Deletes the current line and n-1 lines if n is a  po-
       sitive number.  Deletes n lines preceding the current
       line if n is a negative number.  Negative numbers can
       only be used in block mode.

  DELETE AND PRINT	DP [n] or DP [-n]

       Deletes the current line and prints the  new  current
       line.

  END			E[ND]

       Sets the current line to the last line in a  file  or
       block buffer.

  ERASE			ERASE [n]

       Erases the current line in line mode.

  <ESCAPE>		<ESCAPE>
  or
  ALTMODE		<ALT>

       Prints the previous line and makes it the new current
       line.  

  EXIT			EXIT [filespec]

       Transfers the remaining lines in the block buffer and
       input file to the output file, closes files, renames
       the output file, and terminates the editing session.

  EXIT AND DELETE	ED [filespec]

       Transfers the remaining lines in the block buffer and
       input file to the output file closes files, renames
       the output file and deletes the input file.

  FILE			FIL[E] filespec

       Transfers lines from input file to  both  the  output
       file  and  the specified file until a formfeed or end
       of file is encountered.

  FIND			[n]F[IND] string

       Searches the current block or input  file,  beginning
       at  the  line following the current line, for the nth
       occurrence of the string.  (If n  is  not  specified,
       EDI  searches for the next occurrence of the string.)
       Sets the line pointer to the line it finds.

  FORM FEED		FF

       Inserts a form feed into the block buffer.

  INSERT		IN[SERT] [string]

       Enters the specified  string,  immediately  following
       the  current  line.   If  no string is specified, EDI
       enters input mode.

  KILL			KILL

       Closes input and output files and deletes the  output
       file.

  LINE CHANGE		[n]LC /string1/string2[/]

       Changes all occurrences of string1  in  current  line
       (and n-1 lines) to string2.

  LIST ON TERMINAL	LI[ST]

       Prints all the lines remaining in the block buffer or
       input file on the terminal.

  LOCATE		[n]L[OCATE] string

       Locates the nth occurrence of the  specified  string.
       In  block  mode,  the  search stops at the end of the
       current block.

  MACRO			MACRO [x] definition


       Defines macro number x to be the EDI commands in the
       definition.

  MACRO CALL		MC[CALL]

       Retrieves macro definition stored in a file, MCALL;n.

  MACRO EXECUTE		[n]Mx [a]

       Executes macro x [n] times, while passing numeric ar-
       gument [a].  The value x may be 1,2, or 3.

  MACRO IMMEDIATE	[n] <definition>

       Defines and executes a macro n times.  Stores  it  as
       macro number 1.

  NEXT			N[EXT] [n] or
  			N[EXT] [-n]

       Establishes a new current line n lines away from  the
       current line.

  NEXT AND PRINT	NP[n] or
  			NP[-n]
   
       Establishes and prints new current line.

  OPEN SECONDARY	OP[ENS] filespec

       Opens the specified secondary file.

  OUTPUT ON/OFF		OU[TPUT] ON or
  			OU[TPUT] OFF

       Enables or disables a file transfer to an  out-
       put file in line mode.

  OVERLAY		O[VERLAY] [n]

       Deletes n lines, enters Input mode, and  inserts  new
       line(s), as typed, in place of the deleted lines.

  PAGE			PAG[E] n or -n

       Enters block mode.  Reads page n into  current  block
       buffer.   If n is less than current page, goes to top
       of file first.  Pages are set by form feed characters.

  PAGE FIND		[n]PF[IND] string

       Searches successive blocks for the nth occurrence  of
       the string.

  PAGE LOCATE		[n]PL[OCATE] string

       Searches successive blocks for the nth occurrence  of
       the string.

  PASTE			PA[STE] /string1/string2[/]

       Searches all remaining lines in file or block  buffer
       for string1 and replaces them with string2.

  PRINT			P[RINT] [n]

       Prints the current line and the next n-1 lines.   The
       last line printed is the new current line.

  READ			REA[D] n

       Reads the next  n  blocks  of  text  into  the  block
       buffer.  If the buffer contains text, the new text is
       appended to it.

  RENEW			REN[EW][n]

       Writes the current block to an output file and  reads
       a new block from an input file (block mode only).

  <RETURN>		<CR>

       Prints the next line and makes  it  the  new  current
       line.  This command also exits from input mode if typed
       as the first character of a line.

  RETYPE		R[ETYPE] string

       Replaces the current line with the  specified  string
       or  deletes  the  current line if no string is speci-
       fied.

  SAVE			SA[VE] [n] [filespec]

       Saves the current line and the next n-1 lines in  the
       specified file.

  SEARCH AND CHANGE	SC/string1/string2[/]

       Locates string1 and replaces it with string2.

  SELECT PRIMARY	SP

       Reestablishes the primary file as an input file.

  SELECT SECONDARY	SS

       Selects the open secondary file as an input file.

  SIZE			SIZE n

       Specifies the maximum number of lines  which  can  be
       read into a block buffer.

  TAB			TA[B] ON or
  			TA[B] OFF

       Turns automatic tabbing on or off.

  TOP			T[OP]

       Moves the line pointer to the line preceding the  top
       line of the current block in block mode or the top of
       the file in line mode.  This command creates  a  copy
       of the file each time it is executed in line mode.

  TOP OF FILE		TOF

       Returns to the top of the input file and saves all of
       the  previously edited pages.  This command creates a
       new version of the file each time it is executed.

  TYPE			TY[PE] [n]

       Prints the next n lines.  Identical to the print com-
       mand  in line mode.  However, in block mode, the line
       pointer remains at the current line  unless  EDI  re-
       ached an end of block.

  UNSAVE		UNS[AVE] [filespec]

       Inserts all lines from the specified  file  following
       the  current  line.   If  no  file is named, EDI uses
       SAVE.TMP.

  UPPER CASE		UC ON or
  			UC OFF

       Enables or disables conversion of  lower  case  char-
       acters  to  upper case letters, when they are entered
       at a terminal.

  VERIFY		V[ERIFY] ON or
  			V[ERIFY] OFF

       Selects whether the operation of  Locate  and  Change
       commands will be verified (printed after the line is
       located or changed).

  WRITE			W[RITE]

       Writes the contents of the block buffer to an  output
       file and erases the block buffer.
