1 EDIt
 
 EDI or EDIT is a line oriented editor supplied with IAS and RSX.
 
 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 character of the string.
 
     3.  EDI allows the use of abbreviations for commands.
 
 A summary of legal EDI commands may be obtained by entering the command:
 
	AID EDI SUMMARY
 
2 SUMMARY
 
  Listed below is a summary of EDI commands. Only the first word of 
  two-word commands is included for ease of search.
 
  ADD			INSERT			RETYPE
  BEGIN			KILL			SAVE
  BLOCK 		LINE			SEARCH
  BOTTOM		LIST			SELECT
  CHANGE		LOCATE			SIZE
  CLOSE			MACRO			TAB
  CONCATENATION		NEXT			TOP
  CTRL/Z		OPEN			TYPE
  DELETE		OUTPUT			UNSAVE
  END			OVERLAY			UPPER
  ERASE			PAGE			VERIFY
  ESCAPE		PASTE			WRITE
  EXIT			PRINT
  FILE			READ
  FIND			RENEW
  FORM			RETURN
 
  A description of each command may be obtained by entering the command:
 
	AID EDI command
2 ADD
  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.
2 BEGIN
  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.
2 BLOCK
  BLOCK ON/OFF		BL[OCK] [ON] or
  			BL[OCK] [OFF]
 
       Changes to and from the EDI block mode  of  accessing
       text.
2 BOTTOM
  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).
2 CHANGE
  CHANGE		[n]C[HANGE] /string1/string2[/]...
 
       Replaces string1 with string2 in the current line n
       times.
2 CLOSE
  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.
2 CONCATENATION
  CONCATENATION CHARACTER	CC [letter]
 
       Changes the concatenation character to the  character
       specified.  (The default is &).
2 CTRL/Z
  <CTRL/Z>
 
       Closes files and terminates the editing session.
2 DELETE
  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.
2 END
  END			E[ND]
 
       Sets the current line to the last line in a  file  or
       block buffer.
2 ERASE
  ERASE			ERASE [n]
 
       Erases the current line in line mode.
2 ESCAPE
  <ESCAPE>		<ESCAPE>
  or
  ALTMODE		<ALT>
 
       Prints the previous line and makes it the new current
       line.  
2 EXIT
  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.
2 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.
2 FIND
  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.
2 FORM
  FORM FEED		FF
 
       Inserts a form feed into the block buffer.
2 INSERT
  INSERT		IN[SERT] [string]
 
       Enters the specified  string,  immediately  following
       the  current  line.   If  no string is specified, EDI
       enters input mode.
2 KILL
  KILL			KILL
 
       Closes input and output files and deletes the  output
       file.
2 LINE
  LINE CHANGE		[n]LC /string1/string2[/]
 
       Changes all occurrences of string1  in  current  line
       (and n-1 lines) to string2.
2 LIST
  LIST ON TERMINAL	LI[ST]
 
       Prints all the lines remaining in the block buffer or
       input file on the terminal.
2 LOCATE
  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.
2 MACRO
  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.
2 NEXT
  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.
2 OPEN
  OPEN SECONDARY	OP[ENS] filespec
 
       Opens the specified secondary file.
2 OUTPUT
  OUTPUT ON/OFF		OU[TPUT] ON or
  			OU[TPUT] OFF
 
       Enables or disables a file transfer to an  out-
       put file in line mode.
2 OVERLAY
  OVERLAY		O[VERLAY] [n]
 
       Deletes n lines, enters Input mode, and  inserts  new
       line(s), as typed, in place of the deleted lines.
2 PAGE
  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.
2 PASTE
  PASTE			PA[STE] /string1/string2[/]
 
       Searches all remaining lines in file or block  buffer
       for string1 and replaces them with string2.
2 PRINT
  PRINT			P[RINT] [n]
 
       Prints the current line and the next n-1 lines.   The
       last line printed is the new current line.
2 READ
  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.
2 RENEW
  RENEW			REN[EW][n]
 
       Writes the current block to an output file and  reads
       a new block from an input file (block mode only).
2 RETURN
  <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.
2 RETYPE
  RETYPE		R[ETYPE] string
 
       Replaces the current line with the  specified  string
       or  deletes  the  current line if no string is speci-
       fied.
2 SAVE
  SAVE			SA[VE] [n] [filespec]
 
       Saves the current line and the next n-1 lines in  the
       specified file.
2 SEARCH
  SEARCH AND CHANGE	SC/string1/string2[/]
 
       Locates string1 and replaces it with string2.
2 SELECT
  SELECT PRIMARY	SP
 
       Reestablishes the primary file as an input file.
 
  SELECT SECONDARY	SS
 
       Selects the open secondary file as an input file.
2 SIZE
  SIZE			SIZE n
 
       Specifies the maximum number of lines  which  can  be
       read into a block buffer.
2 TAB
  TAB			TA[B] ON or
  			TA[B] OFF
 
       Turns automatic tabbing on or off.
2 TOP
  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.
2 TYPE
  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.
2 UNSAVE
  UNSAVE		UNS[AVE] [filespec]
 
       Inserts all lines from the specified  file  following
       the  current  line.   If  no  file is named, EDI uses
       SAVE.TMP.
2 UPPER
  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.
2 VERIFY
  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).
2 WRITE
  WRITE			W[RITE]
 
       Writes the contents of the block buffer to an  output
       file and erases the block buffer.
 
 
