  -----------------------------------------------------------------
  TOPIC: Introduction
  -----------------------------------------------------------------

  Edit primary commands generally operate over the entire range of
  the file, rather than upon a single line or group of lines. In
  some cases they operate on the current selection. Edit primary
  commands are entered in the Primary Command Field rather than in
  the Line Command Field of individual lines.

  In the detailed command descriptions which follow, operands listed
  within square brackets [ ] are optional.

  -----------------------------------------------------------------
  TOPIC: &
  -----------------------------------------------------------------

  PURPOSE:

  Use this prefix character to keep the primary command which
  follows it in primary command field after execution.

  FORMAT:

  &...primary-command...

  REMARKS:

  To keep a primary command in the primary command field after
  execution, prefix the command with the ampersand(&) character.

  -----------------------------------------------------------------
  TOPIC: .
  -----------------------------------------------------------------

  PURPOSE:

  Use this prefix character to identify the command entered in the
  primary command field or PF key definition as a label. Apply it to
  the current line.

  FORMAT:

  .label

  REMARKS:

  To apply a label to the current line without actually typing on
  that line, type dot followed by the label in the Primary Command
  Field (or in a PF key definition).

  Note:  When a label is typed in the primary command field, the top
  display line is the current line.

  -----------------------------------------------------------------
  TOPIC: :
  -----------------------------------------------------------------

  PURPOSE:

  Use this prefix character to identify the command entered in the
  primary command field or PF key definition as a line command.
  Apply it to the current line.

  FORMAT:

  :line-command

  REMARKS:

  To apply a line command to the current line without actually
  typing on that line, type colon followed by the line command in
  the Primary Command Field (or in a PF key definition).

  EXAMPLE:

  If you want to delete a single line using a PF key, you would
  assign that PF key the value:

   :D

  To insert a single line using a PF key, you would assign that PF
  key the value:

   :I

  Note:  When a line command is typed in the primary command field,
  the top display line is the current line.

  -----------------------------------------------------------------
  TOPIC: BOTTOM
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to position to the bottom of the file.

  FORMAT:

  BOTTOM

  REMARKS:

  None.

  -----------------------------------------------------------------
  TOPIC: BOUNDS
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to set the left and right column bounds for the
  current file type.

  FORMAT:

  BOUNDS  [ nn nn ]

  REMARKS:

  Bounds limit the scope of the following commands:

  *  FIND, CHANGE, and EXCLUDE primary commands

  *  Column Shift Left/Right line commands "(())"

  *  Data Shift Left/Right line commands "<<>>"

  *  Text Split and Text Join line commands "TS, TJ"

  In the optional parameters, the first number specifies the left
  bound, and the second the right bound.

  If no numbers are specified, the left bound is set to the OFFSET
  value plus one from the current File Profile, and the right bound
  is set to the MAXIMUM RECORD LENGTH value from the current File
  Profile.

  If an asterisk is specified in place of a number, that bound
  remains unchanged.

  -----------------------------------------------------------------
  TOPIC: CANCEL
  -----------------------------------------------------------------

  PURPOSE:

  Cancels editing of current file.

  FORMAT:

  CANCEL

  REMARKS:

  Any changes made during an edit session are cancelled.

  Note:  If the SAVE command was used before CANCEL, edit changes
  made up to the SAVE are not cancelled.

  -----------------------------------------------------------------
  TOPIC: CAPS
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to dynamically turn automatic capitalization on
  or off

  FORMAT:

  CAPS  ON | OFF

  REMARKS:

  The default state for capitalization is controled by the File
  Profile.

  -----------------------------------------------------------------
  TOPIC: CHARSET
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to change the file character set.

  FORMAT:

  CHARSET  EBCDIC | ASCII

  REMARKS:

  The default state for character set is controled by the File
  Profile.

  -----------------------------------------------------------------
  TOPIC: CHANGE
  -----------------------------------------------------------------

  PURPOSE:

  Searches the file for a character string then replaces it with
  another character string.  Strings which are changed are
  highlighted.

  FORMAT:

  CHANGE  string1 string2  [col1[col2]]
                           [FIRST | LAST | PREV | NEXT | ALL]
                           [PREFIX | SUFFIX | WORD | EOL]
                           [X | NX]  [QUIET]
                           [label1 [label2]]

  REMARKS:

  Generally CHANGE is entered with only the two required parameters:
  STRING1 and STRING2. In this case, SPF/SE searches for the next
  instance of STRING1 starting at the current cursor location. When
  STRING1 is found it is replaced with STRING2. SPF/SE searches for
  STRING1 within the current bounds (see File Profile).

  You can press [F6] to repeat the change on the next occurrence of
  STRING1.

  The most common parameter used is ALL which replaces all
  occurrences of STRING1 rather than just the next one.

  The remaining optional parameters are not used as frequently.
  Together they provide a flexible extension to the basic search and
  replace capability.

  The QUIET optional parameter should be specified when invoking
  this command via macro. It suppresses unwanted information
  messages that occur during normal command operation.

  CHANGE has common parameters with FIND and EXCLUDE; these
  parameters are fully documented once at the beginning of this
  chapter. So, if you want to:

  *  specify character strings containing blanks or quotes

  *  do case sensitive/insensitive searches

  *  find and replace hexadecimal strings

  *  find or replace a string that you just specified in a previous
     FIND, CHANGE, EXCLUDE command

  *  restrict searching to a range of lines

  *  restrict searching to a "prefix" (a string which is preceded by
     blank, punctuation, or line start, and followed by non-blank or
     non-punctuation)

  *  restrict searching to a "suffix" (a string which is preceded by
     non-blank or non-punctuation, and followed by blank,
     punctuation, or line end)

  *  restrict searching to a "word" (a string which is preceded by
     blank, punctuation, or line start, and followed by blank,
     punctuation, or line end)

  *  restrict searching to "eol" (end of the line, last non-blank
     data).

  *  restrict searching to only EXCLUDED lines

  *  restrict searching to only non-EXCLUDED lines

  *  cause searching in columns other than the current BOUNDS

  STRING1 and STRING2 are required; all other parameters are
  optional.

  Parameters may be entered in any order.  However STRING1 must
  precede STRING2, LABEL1 must precede LABEL2, and COL1 must precede
  COL2.  If LABEL2 is not specified, .ZLAST is assumed.

  EXAMPLE:

  To change string "this" to string "that":

  change this that

  To change string "something" to a null string (''):

  CHANGE something ''

  To change string "ABC" to string "XYZ" in columns 1 through 20
  inclusive:

  CHANGE ABC XYZ 1 20

  To change all occurrences of string "ABC" to "XYZ":

  CHANGE ABC XYZ ALL

  To change all occurrences of string "ABC" to "XYZ" only in
  EXCLUDED lines:

  CHANGE ABC XYZ ALL X

  To change all occurrences of string "ABC" to "XYZ" only in
  non-EXCLUDED lines:

  CHANGE ABC XYZ ALL NX

  To change all blanks to hyphens in columns 1 to 5, between lines
  labeled .B and .E:

  CHANGE ALL ' ' '-' 1 5 .B .E

  -----------------------------------------------------------------
  TOPIC: COLORMAP
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to dynamically change the colorization file
  binding.

  FORMAT:

  COLORMAP  colorization-type | NONE

  REMARKS:

  Specify the colorization type you want to bind to the current edit
  file.

  EXAMPLE:

  For example, if you were editing a mainframe PDS member which was
  downloaded to the PC with no file extension, and the file contained
  COBOL source, you would specify

     COLORMAP CBL

  to bind the COBOL colorization file to the current member.

  The opposite case is when you have a file name with an extension
  that provides a colorization which you do not want. In that case
  you would specify

     COLORMAP NONE

  to turn off colorization for the current file.

  The colorization change applies to the current file and all files
  of the same type loaded within the current session. When the
  session ends, the colorization binding reverts to the value
  specified in the File Profile.

  File profiles for common program source types (e.g. C, CBL, PL1,
  HTML, JAVA, el al) are provided with matching colorization files.
  In the case where you want to create a colorization file with a
  specific name which does not match an existing file type, use the
  following procedure:

  *  Click menu OPTIONS, item FILE PROFILES.

  *  Create a new File Profile named TEST.

  *  In the "Colorization type" field of the TEST profile enter the
     desired name.

  *  Click the "..." button to create the colorization file.

  *  Fill in the resulting dialogs.

  *  For context specific HELP, cick on "?".

  -----------------------------------------------------------------
  TOPIC: COLSCOPY
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to copy the current rectangular selection to the
  clipboard.

  FORMAT:

  COLSCOPY [start-col [end-col]]  [start-label [end-label]]

  REMARKS:

  This command is automatically invoked by the COPY primary command
  when the current selection is a rectangle. See "Using the Mouse"
  for a description of rectangular selection.

  You can also invoke this command manually with the following
  parameters:

  start-col

     The starting column for the rectangular selection.

  end-col

     The ending column for the rectangular selection.  If not
     specified, end-column is set equal to start-column.

  start-label

     The starting label for the rectangular selection.  If not
     specified, the selection starts with the first line in the
     file.

  end-label

     The ending label for the rectangular selection.  If not
     specified, the selection ends with the last line in the file.

  -----------------------------------------------------------------
  TOPIC: COLSCUT
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to delete the current rectangular selection.  The
  cut columns are put in the clipboard.

  FORMAT:

  COLSCUT [start-col [end-col]]  [start-label [end-label]]

  REMARKS:

  This command is automatically invoked by the CUT primary command
  when the current selection is a rectangle. See "Using the Mouse"
  for a description of rectangular selection.

  You can also invoke this command manually with the following
  parameters:

  start-col

     The starting column for the rectangular selection.

  end-col

     The ending column for the rectangular selection.  If not
     specified, end-column is set equal to start-column.

  start-label

     The starting label for the rectangular selection.  If not
     specified, the selection starts with the first line in the
     file.

  end-label

     The ending label for the rectangular selection.  If not
     specified, the selection ends with the last line in the file.

  -----------------------------------------------------------------
  TOPIC: COLSDELETE
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to delete the current rectangular selection.  The
  deleted columns are NOT put in the clipboard.

  FORMAT:

  COLSDELETE [start-col [end-col]]  [start-label [end-label]]

  REMARKS:

  This command is automatically invoked by the DELETE primary
  command when the current selection is a rectangle. See "Using the
  Mouse" for a description of rectangular selection.

  You can also invoke this command manually with the following
  parameters:

  start-col

     The starting column for the rectangular selection.

  end-col

     The ending column for the rectangular selection.  If not
     specified, end-column is set equal to start-column.

  start-label

     The starting label for the rectangular selection.  If not
     specified, the selection starts with the first line in the
     file.

  end-label

     The ending label for the rectangular selection.  If not
     specified, the selection ends with the last line in the file.

  -----------------------------------------------------------------
  TOPIC: COLSINSERT
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to insert new empty columns into existing lines.

  FORMAT:

  COLSINSERT  insert-col  number  [start-label [end-label]]

  REMARKS:

  This command is normally used to insert new fields into existing
  flat file data records. Parameter descriptions follow:

  insert-col

     Required, the column number where you want the new columns
     inserted.

  number

     Required, the number of new columns you want to insert.

  start-label

     Optional, the starting label for the rectangular selection.  If
     not specified, the selection starts with the first line in the
     file.

  end-label

     Optional, the ending label for the rectangular selection.  If
     not specified, the selection ends with the last line in the
     file.

  -----------------------------------------------------------------
  TOPIC: COLSPASTE
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to paste uniform tabular data created by COLSCUT
  or COLSCOPY from the clipboard into the lines of a file. The
  tabular data is inserted on a line by line basis at the paste
  point just as if you had typed it into the line.

  FORMAT:

  COLSPASTE  [paste-col]  [paste-label]

  REMARKS:

  WARNING: This command should ONLY be used to paste clipboard data
  that was created by COLSCUT or COLSCOPY. If you try to paste
  non-uniform clipboard data, you will get an error message and the
  paste operation will terminate. Use UNDO to repair any data
  corruption caused by this mistake.

  When the number of tabular lines in the clipboard is greater than
  the number of receiving lines in the file, additional null lines
  are appended to the file as required to receive the pasted data.

  You can also invoke this command manually with the following
  parameters:

  paste-col

     The column where the paste is to commence.  If not specified,
     the paste commences at the current cursor column.

  paste-label

     The label of the line where the paste is to commence.  If not
     specified, the paste commences at the current cursor line.

  -----------------------------------------------------------------
  TOPIC: COPY
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to copy the current selection to the clipboard.

  FORMAT:

  COPY

  REMARKS:

  If there is no selection, the current line is copied.

  If the selection is a rectangle, the COLSCOPY command is
  automatically invoked.

  Note:  Legacy primary command COPY is replaced by primary command
  COPYL.

  -----------------------------------------------------------------
  TOPIC: COPYL
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to copy the lines of an external file into the
  current edit file. (Use instead of legacy primary command COPY.)

  FORMAT:

  COPYL  [file-name]  [from-line-number to-line-number]  [ASNOTES]

  REMARKS:

  You must specify the A(after) or B(before) line command in
  conjunction with COPYL to identify where the copied lines are to
  be inserted.

  If the target file is empty, the A or B line command is not
  required.

  To use this command:

  *  Press the [HOME] key.

  *  Enter the COPYL command in the primary command field.

  *  Type "A" or "B" on the line where you want to copy external
     lines.  If "A" is specified, copied lines are inserted AFTER
     the line where the cursor is positioned. If "B" is specified,
     copied lines are inserted BEFORE the line where the cursor is
     positioned.

  *  Press the [3270-Enter] key to execute the COPYL command.

  If file name is not specified, a dialog is presented which lets
  you specify the source file name.

  If the file does not exist, you are notified and the operation is
  cancelled.

  If a line number range is specified, only the specified lines are
  copied. Otherwise, all lines are copied.

  If ASNOTES is specified, the copied lines are made into NOTE
  lines.

  -----------------------------------------------------------------
  TOPIC: CREATE
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to create a new file with lines from the current
  edit file.

  FORMAT:

  CREATE  [file-name]

  REMARKS:

  If no file name is specified, a dialog is presented to allow
  navigation to the destination directory and specification of the
  new file name.

  Mark lines to be copied with the CC line command.  The current
  edit file is not affected by the CREATE operation.

  Mark lines to be moved with the MM line command.  Moved lines are
  deleted from the current edit file by the CREATE operation.

  If the file to be created already exists, the operation is
  aborted.

  Note:  Modern command EXPORT provides the functionality of CREATE
  and REPLACE in a single command and uses the mouse to select lines
  to be copied.

  -----------------------------------------------------------------
  TOPIC: CURSOR
  -----------------------------------------------------------------

  PURPOSE:

  Use this command in macros to move the cursor to the primary
  command field.

  FORMAT:

  CURSOR

  REMARKS:

  Normally the [HOME] key is used for this purpose.  You can also
  map the CURSOR command to a function key.

  -----------------------------------------------------------------
  TOPIC: CURSORMOVE
  -----------------------------------------------------------------

  PURPOSE:

  Use this command in macros to move the cursor relative to its
  current position.

  FORMAT:

  CURSORMOVE  UP | DOWN | LEFT | RIGHT  [number]

  REMARKS:

  The cursor is moved up, down, left or right from its current
  position by the number of positions specified in "number".  The
  default move amount is 1.  The minimum move amount is 1.  The
  maximum move amount is 99.

  -----------------------------------------------------------------
  TOPIC: CUT
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to delete the current selection.  The cut lines
  are put in the clipboard.

  FORMAT:

  CUT

  REMARKS:

  If there is no selection, the current line is cut.

  If the selection is a rectangle, the COLSCUT command is
  automatically invoked.

  -----------------------------------------------------------------
  TOPIC: DATA
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to insert or overtype data at the current cursor
  position.

  FORMAT:

  DATA ...string...

  REMARKS:

  This command is normally invoked via function key definition or
  edit macro. The data string is "typed" in at the current cursor
  position within Edit just as if you had entered it through the
  keyboard. If the cursor is not in the data area, an error message
  is issued and the command is ignored.

  If the data string contains the command separator character semi-
  colon (;) enclose it in quotes.

  -----------------------------------------------------------------
  TOPIC: DATALINE
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to insert a data line immediately above the
  current line.

  FORMAT:

  DATALINE  ...text...

  REMARKS:

  This command is normally invoked via function key definition or
  edit macro. The data line is inserted above the current line. If
  the cursor is not in the data area or is on the Top of File line,
  an error message is issued and the command is ignored.

  If the data line text contains leading blanks or the command
  separator character semi-colon (;) enclose it in quotes.

  -----------------------------------------------------------------
  TOPIC: DELETE
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to delete the current selection, or all excluded
  lines, or all non-excluded lines, or a range of lines.

  FORMAT:

  DELETE  [ X | NX ]
          [label1 [label2]]

  REMARKS:

  If no parameters are specified the current selection is deleted.
  If there is no selection, the current line is deleted.

  If the selection is a rectangule, the COLSDELETE command is
  automatically invoked.

  If X is specified, all excluded lines are deleted.

  If NX is specified, all non-excluded lines are deleted.

  If a label range is specified, only lines within the label range
  are deleted.  If LABEL2 is not specified, .ZLAST is assumed.

  Deleted lines are not put in the clipboard.

  Note:  If legacy parameter "ALL" is specified, it is ignored.

  -----------------------------------------------------------------
  TOPIC: DOWN
  -----------------------------------------------------------------

  PURPOSE:

  Same as [F8] key.  Use this command to scroll toward the bottom of
  the file.

  FORMAT:

  DOWN  [ PAGE | HALF | CURSOR | DATA | MAX | number ]

  REMARKS:

  If no parameter is specified, the display is scrolled based on the
  the OPTIONS menu, SCROLLMODE item setting.

  If PAGE is specified, the display is scrolled down one full
  display frame.

  If HALF is specified, the display is scrolled down one half
  display frame.

  If CURSOR is specified, the display is scrolled down until the
  line on which the cursor rests becomes the top display line. If
  the cursor is already resting on the top display line, the display
  is scrolled down one full display frame.

  If DATA is specified, the display is scrolled down one full
  display frame minus one line.

  If MAX is specified, the display is scrolled to the bottom of the
  file.

  If a number is specified, the display is scrolled down the number
  of lines specified.

  -----------------------------------------------------------------
  TOPIC: ENTER
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to perform ENTER processing.

  FORMAT:

  ENTER

  REMARKS:

  This command is primarily intended for use in edit macros.

  -----------------------------------------------------------------
  TOPIC: EXCLUDE
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to exclude selected lines from view.

  FORMAT:

  EXCLUDE  [string1 | SELECTION | * ]  [ALL]
           [col1[col2]]
           [PREFIX | SUFFIX | WORD | EOL]
           [QUIET]
           [label1 [label2]]

  REMARKS:

  Excludes one or more lines containing STRING1.  The number of
  lines excluded is controlled by the ALL parameter.

  The search for STRING1 can be limited to a range of labeled lines.

  The search for STRING1 can be constrained to a specific start and
  end column within each line.

  Parameters may be entered in any order.  However LABEL1 must
  precede LABEL2, and COL1 must precede COL2.  If LABEL2 is not
  specified, .ZLAST is assumed.

  The lines containing a match on STRING1 are excluded from view
  just as if an X line command was entered on those lines.

  Of all of the possible combinations of parameters, the following
  two are used most frequently:

  *  EXCLUDE string1 ALL" excludes all lines that match STRING1.

  *  EXCLUDE ALL excludes all lines from view.  This is usually
     followed by a FIND string1 command which makes only lines
     containing STRING1 visible.  After the subset lines are
     visually verified, CHANGE string1 string2 is used to change
     them.

  Although the rest of the optional parameters are not used as
  frequently, together they provide a flexible search capability.

  The QUIET optional parameter should be specified when invoking
  this command via macro. It suppresses unwanted information
  messages that occur during normal command operation.

  EXCLUDE has common parameters with CHANGE and FIND; these
  parameters are fully documented once at the beginning of this
  chapter. So, if you want to:

  *  specify character strings containing blanks or quotes

  *  do case sensitive/insensitive searches

  *  search for hexadecimal strings

  *  find a line containing string that you just specified in a
     previous FIND, CHANGE, EXCLUDE command

  *  restrict searching to a range of lines

  *  cause searching in columns other than the current BOUNDS

  *  restrict searching to a "prefix" (a string which is preceded by
     blank, punctuation, or line start, and followed by non-blank or
     non-punctuation)

  *  restrict searching to a "suffix" (a string which is preceded by
     non-blank or non-punctuation, and followed by blank,
     punctuation, or line end)

  *  restrict searching to a "word" (a string which is preceded by
     blank, punctuation, or line start, and followed by blank,
     punctuation, or line end)

  *  restrict searching to "eol" (end of the line, last non-blank
     data).

  Once lines are excluded, they can be returned to view (not
  excluded) the following ways:

  *  The RESET command makes all excluded lines visible.

  *  The FIND command makes excluded lines containing the find
     string visible.

  *  The FIRST and LAST line commands make one or more excluded
     lines (at beginning or end of a block of excluded lines)
     visible.

  EXAMPLE:

  This example excludes all lines containing string "ELSE" in
  columns 1 to 4 between lines labeled .E and .S:

  EXCLUDE ALL ELSE 1 4 .E .S

  -----------------------------------------------------------------
  TOPIC: EXPORT
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to export the current selection to an external
  file.  (This command replaces legacy SPF commands CREATE and
  REPLACE).

  FORMAT:

  EXPORT  [file-name]

  REMARKS:

  If no file name is specified, a dialog is presented to allow
  navigation to the destination directory and specification of the
  new file name.

  Use the mouse or ZZ line command to select a block of lines for
  export. (Unlike legacy SPF commands CREATE and REPLACE, EXPORT
  does not use the CC or MM line commands to identify the lines to
  be exported.)

  If the file to be created already exists, you will be prompted to
  determine whether it is OK to overwrite it.

  EXPORT does not affect the current edit file.

  Note:  To import lines from an external file into the current edit
  file, see the COPYL Edit Primary Command.

  -----------------------------------------------------------------
  TOPIC: FIND
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to search a file for a string.  Strings which are
  found are highlighted.

  FORMAT:

  FIND  string1 | SELECTION | *
        [col1[col2]]
        [FIRST | LAST | PREV | NEXT | ALL]
        [DUPLINES | PREFIX | SUFFIX | WORD | EOL]
        [X | NX]  [QUIET]
        [label1 [label2]]

  REMARKS:

  Parameter STRING1 is required; all others are optional.

  Parameters may be entered in any order.  However LABEL1 must
  precede LABEL2, and COL1 must precede COL2.  If LABEL2 is not
  specified, .ZLAST is assumed.

  Usually, the FIND command is issued with only the STRING1
  parameter.  In that case, SPF/SE searches for the next instance of
  STRING1 starting at the current cursor location. SPF/SE only
  searches for STRING1 within the current bounds. If the line is not
  currently displayed on the screen, SPF/SE scrolls the file so that
  it is displayed. If the line is currently excluded, it is made
  visible.

  If SELECTION is specified, the current text selection is used for
  STRING1. For use in this context, the text selection may not span
  lines.

  If "*" is specified, the STRING1 value from the last FIND command
  is used.

  Although the rest of the optional parameters are not used as
  frequently, together they provide a very flexible search
  capability.

  The QUIET optional parameter should be specified when invoking
  this command via macro. It suppresses unwanted information
  messages that occur during normal command operation.

  FIND has common parameters with CHANGE and EXCLUDE; these
  parameters are fully documented once at the beginning of this
  chapter. So, if you want to:

  *  specify character strings containing blanks or quotes

  *  do case sensitive/insensitive searches

  *  search for hexadecimal strings

  *  find a line containing string that you just specified in a
     previous FIND, CHANGE, EXCLUDE command

  *  restrict searching to a range of lines

  *  "duplines" causes a search for all lines which match on the
     field specified via the column range (see col1, col2). If
     "duplines" is specified, you must specify a dummy STRING1; we
     recommend "-". In practice it is best to "sort col1 col2", then
     "exclude all", then "find - col1 col2 duplines". To see
     non-duplicate lines, invoke the "flip" command after "find".

  *  restrict searching to a "prefix" (a string which is preceded by
     blank, punctuation, or line start, and followed by non-blank or
     non-punctuation)

  *  restrict searching to a "suffix" (a string which is preceded by
     non-blank or non-punctuation, and followed by blank,
     punctuation, or line end)

  *  restrict searching to a "word" (a string which is preceded by
     blank, punctuation, or line start, and followed by blank,
     punctuation, or line end)

  *  restrict searching to "eol" (end of the line, last non-blank
     data).

  *  restrict searching to only EXCLUDED lines

  *  restrict searching to only non-EXCLUDED lines

  *  cause searching in columns other than that currently specified
     in the "bounds" of the File Profile.

  EXAMPLE:

  Find the first occurrence of string "ABC" in the file:

  FIND FIRST ABC

  Find the last occurrence of string "ABC" in the file:

  FIND LAST ABC

  Find the next occurrence of string "ABC" starting at the current
  cursor position:

  FIND ABC   (this is the most common form)

  or

  FIND NEXT ABC

  Find the previous occurrence of string "ABC" starting at the
  current cursor position:

  FIND PREV ABC

  Find the next occurrence of string "ABC" between columns 1 and 20:

  FIND ABC 1 20

  Find next occurrence of string "one of a kind":

  FIND 'one of a kind'

  Find all occurrences of string "ABC":

  FIND ABC ALL

  Find all occurrences of string "ABC" searching only in EXCLUDED
  lines:

  FIND ABC ALL X

  Find all occurrences of string "ABC" searching only in
  non-EXCLUDED lines:

  FIND ABC ALL NX

  This example finds the first hyphen (-) in columns 1 to 5 between
  lines labeled .E and .S.

  FIND FIRST '-' 1 5 .E .S

  -----------------------------------------------------------------
  TOPIC: FLIP
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to invert the sense of current
  excluded/non-excluded lines.

  FORMAT:

  FLIP

  REMARKS:

  After using EXCLUDE and FIND to get an abridged view of a file`s
  content, use FLIP to invert the sense of the currently excluded
  and non-excluded lines.

  -----------------------------------------------------------------
  TOPIC: HEX
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to set hexadecimal edit ON or OFF.

  FORMAT:

  HEX  [ON | OFF]

  REMARKS:

  If ON is specified, hexadecimal edit is enabled.  Two rows of hex
  codes are displayed immediately below each edit line.  These rows
  continuously display the hexadecimal codes for each character in
  that line.

  Hex values are only displayed for columns which contain data. Hex
  values for columns beyond the true end of line are displayed as
  void (blank).

  To enter or modify hex codes simply type over the hex display row
  in the desired column.

  If OFF is specified, hexadecimal edit is disabled and the hex
  display rows are dismissed.

  If no parameters are specified, hexadecimal viewing is toggled.
  If currently ON, it is set to OFF.
  If currently OFF, it is set to ON.

  -----------------------------------------------------------------
  TOPIC: HEXIN
  -----------------------------------------------------------------

  PURPOSE:

  Use this command for input of hexadecimal data at the current
  cursor position.

  FORMAT:

  HEXIN  [hexadecimal-digits]

  REMARKS:

  If no hex digits are specified, a dialog is presented to allow entry
  of the hex codes.

  There are many character values that may not be directly typed in.
  Also when dealing with data files, as opposed to text or program
  source, many or all of the data bytes may be non-displayable and
  or non-typeable. In some of these cases it is desirable to be able
  to display or modify these bytes.

  Hexadecimal digits are entered in pairs where each digit is in the
  range 0..9 or A..F.

  Data entered in this manner is converted to its hexadecimal
  equivalent and then passed in like normal typed text. If EDIT is
  in insert mode, the data is inserted. If EDIT is in overtype mode,
  the data is overtyped.

  For convenience you can:

  * Map the HEXIN primary command to an ALT, CTRL, or PF key
    (Invoke OPTIONS, item KEYS)

  * Put the HEXIN primary command in the Edit popup menu
    (Invoke OPTIONS, item EDITOR, field POPUP COMMANDS)
  
  -----------------------------------------------------------------
  TOPIC: INSERTLINE
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to insert a new data line into the current edit
  file. This command is primarily intended for use in edit macros.

  FORMAT:

  INSERTLINE  line-number  line-data

  REMARKS:

  line-number - Required. The ordinal number assigned to the inserted
                line.
   
  line-data   - Required. The data for the line to be inserted. If the
                line data has leading blanks, enclose the data in
                quotes (single or double).

  Example, to insert a new line 227 into the current edit file:
   
      INSERTLINE 227 "   This is the new line data."
   
  NOTE: The example line data has leading blanks and so was enclosed
  in quotes.
   
  -----------------------------------------------------------------
  TOPIC: LEFT
  -----------------------------------------------------------------

  PURPOSE:

  Same as [F10] key.  Use this command to scroll toward the left
  edge of the displayed text.

  FORMAT:

  LEFT  [ PAGE | HALF | CURSOR | DATA | MAX | number ]

  REMARKS:

  If no parameter is specified, the display is scrolled based on the
  the OPTIONS menu, SCROLLMODE item setting.

  If PAGE is specified, the display is scrolled left the full width
  of the data display area.

  If HALF is specified, the display is scrolled left one half of the
  width of the data display area.

  If CURSOR is specified, the display is scrolled left until the
  data column on which the cursor rests is flush with the right edge
  of the data display area.

  If DATA is specified, the display is scrolled left the full width
  of the data display area minus one column.

  If MAX is specified, the display is scrolled left such that the
  first data column is in the first display column (column 7).

  If a number is specified, the display is scrolled left by the
  number specified.

  -----------------------------------------------------------------
  TOPIC: LOCATE
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to position the file to a specific line.

  FORMAT:

  LOCATE  line-number [ col-number ]  |  .label
          | LABEL | SPECIAL | CHANGE

  REMARKS:

  If "line-number" is specified, the file is positioned so that the
  specified line number is at the top of the display. If column
  number is specified along with line number, the cursor is
  positioned to the located line at the specified data column. If
  column number is not specified, the cursor remains in the primary
  command field.

  If ".label" is specified, the line with the specified label is
  positioned to the top of the display.  The cursor remains in the
  primary command field.

  If LABEL is specified, the file is positioned to the NEXT label.
  This is useful when you have forgotten a label or when you
  identify a series of related lines with different labels even
  though they are essentially members of a series or set.  (Short
  form 'L' is also accepted.) The cursor remains in the primary
  command field.

  If SPECIAL is specified, the file is positioned to the NEXT
  non-text line. This feature is often used to position to merged
  compiler error messages.  (Short form 'S' is also accepted.) The
  cursor remains in the primary command field.

  If CHANGE is specified, the file is positioned to the NEXT changed
  line. This feature is often after a "CHANGE ALL ..." to examine
  changed lines that may be spread over an entire file.  The cursor
  remains in the primary command field.

  EXAMPLE:

  Position the line number 472:

  LOCATE 472

  Position the line number 66 data column number 35:

  LOCATE 66 35

  Position to line with label .A:

  LOCATE .A

  Position the next label:

  LOCATE LABEL

  Position the next non-text line:

  LOCATE SPECIAL

  Position the next changed line:

  LOCATE CHANGE

  -----------------------------------------------------------------
  TOPIC: MATCH
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to match the source program construct under the
  cursor with its mate.

  FORMAT:

  MATCH

  REMARKS:

  If the cursor is not in the data area, MATCH uses the last cursor
  position before the HOME key was pressed.

  This command supports forward and backward matching of source
  program constructs {}, [], (), <>, /*, */, BEGIN/END, and
  begin/end.

  To use the MATCH command:

  *  Place the cursor on the source program construct you want to
     match.

  *  Press [HOME] key to get to the primary command field.

  *  Enter the MATCH command.

  *  Press [3270-Enter] key.

  For proper operation with BEGIN/END, the cursor must be placed on
  the "B" of "BEGIN", or the "E" of "END".

  For proper operation with /* and */, the cursor must be placed on
  the "/" of "/*", or the "*" of "*/".

  The command searches forward or backward depending on the
  construct.  While searching, it keeps track of nested instances of
  the same construct so that the correct mate will be found. When
  the correct mate is found, all text between the open and close
  construct is highlighted with the FIND highlight.

  Note:  This command is not aware of source program comments. It is
  possible for it to conclude that a construct within a comment line
  is a match.  In that case re-phrase the comment to get proper
  operation.

  -----------------------------------------------------------------
  TOPIC: MERGEMSG
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to merge the content of a compiler error message
  file with the file being edited.

  FORMAT:

  MERGEMSG msg-filename

  REMARKS:

  Error messages are merged as NOTEs into the file being edited at
  the line position where the error occurred. You can also use the
  /R command line option to merge compiler error messages with the
  associated source file.

  The following message formats are supported:

     Micro Focus COBOL
     Realia COBOL
     Borland C++
     Microsoft (all languages)

  EXAMPLE:

  The following examples merge error message file "error.out" with
  the active edit file:

  mergemsg error.out
  mergemsg \home\username\cobol\demos\error.out

  -----------------------------------------------------------------
  TOPIC: NOTELINE
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to insert a NOTE line immediately above the
  current line.

  FORMAT:

  NOTELINE  ...note-line-text...

  REMARKS:

  This command is normally invoked via function key definition or
  edit macro. The noteline is inserted above the current line. If
  the cursor is not in the data area or is on the Top of File line,
  an error message is issued and the command is ignored.

  If the data line text contains leading blanks or the command
  separator character semi-colon (;) enclose it in quotes.

  -----------------------------------------------------------------
  TOPIC: NUMBER
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to set line numbering mode and number the records
  in the current Edit file.

  FORMAT:

  NUMBER  COBOL | STANDARD | COB+STD | OFF

  REMARKS:

  COBOL puts line numbers in columns 1 to 6 of each record. Short
  form COB is also accepted.

  STANDARD puts line numbers in columns 73 to 80 of each record.
  Short form STD is also excepted.

  COB+STD puts line numbers in columns 1 to 6 of each record.
  Columns 73 to 80 are protected but not numbered.

  For type OTHER, use menu OPTIONS, item FILE PROFILES, to set line
  number type and related fields.

  Also see RENUMBER and UNNUMBER Edit primary commands.

  See general command PROFILES for further details on line number
  options.

  -----------------------------------------------------------------
  TOPIC: PASTE
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to paste the current content of the clipboard
  into the current edit file at one of the following places:

  1) Above the line where the cursor is located.

  2) Above the line identified with the "A" line command.

  3) Below the line identified with the "B" line command.

  FORMAT:

  PASTE

  REMARKS:

  Use CUT or COPY primary commands to put lines into the clipboard.

  If the clipboard content is "stream" (less than a full line), it
  can only be pasted at the current cursor position.

  If the target file is empty, you do not have to put the cursor on
  a data line.

  If the target file is empty, the A or B line command is not
  required.

  -----------------------------------------------------------------
  TOPIC: PRINT
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to print the current selection.

  FORMAT:

  PRINT  [X | NX]

  REMARKS:

  If there is no selection, the entire file is considered selected.

  If "X" is specified, only excluded lines are printed.

  If "NX" is specified, only non-excluded lines are printed.

  If neither "X" nor "NX" are specified, all lines in the selection
  are printed without regard to exclusion state.

  See menu "Help", item "Contents", topic "Fonts" for a discussion
  of font considerations for print.

  -----------------------------------------------------------------
  TOPIC: PROFILE
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to present the File Profile Dialog for the
  current file type.

  FORMAT:

  PROFILE

  REMARKS:

  This command is provided so you can examine current profile
  settings.  You can not modify the File Profile while it is in use.
  Press [F1](Help) or see General Primary Command PROFILES for
  details on File Profile dialog fields.

  -----------------------------------------------------------------
  TOPIC: RCHANGE
  -----------------------------------------------------------------

  PURPOSE:

  Same as [F6] key.  Use this command to repeat the last CHANGE
  command.

  FORMAT:

  RCHANGE

  REMARKS:

  See primary command CHANGE for details.

  When RCHANGE reaches the end of the file (or beginning in the case
  of PREV) without finding STRING1, it issues message "RCHANGE at
  bottom of data.". At this point, you can invoke RCHANGE again to
  resume the change operation at the opposite end of the file.

  -----------------------------------------------------------------
  TOPIC: RECOLOR
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to recolor the file after a modification of
  multiline comments.

  FORMAT:

  RECOLOR

  REMARKS:

  This command is provided to dynamically recolorize the file after
  altering one or more multiline comments. We do not invoke the
  command automatically because it would be innefficient. Only the
  user knows when all intended changes are complete.

  -----------------------------------------------------------------
  TOPIC: RENUMBER
  -----------------------------------------------------------------

  PURPOSE:

  Renumber all lines based on the current File Profile setting.

  FORMAT:

  RENUMBER

  REMARKS:

  For COBOL line numbering, this command puts line numbers in
  columns 1 to 6 of each record.

  For STANDARD line numbering, this command puts line numbers in
  columns 73 to 80 of each record.

  For COB+STD line numbering, this command puts line numbers in
  columns 1 to 6 of each record.

  For OTHER line numbering, this command puts line numbers in the
  field defined by "NumColStart" and "NumColEnd" in the File
  Profile.

  Also see NUMBER and UNNUMBER Edit primary commands.

  See general command PROFILES for details on line number options.

  -----------------------------------------------------------------
  TOPIC: REPLACE
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to replace an existing file with lines from the
  current edit file.

  FORMAT:

  REPLACE  [file-name]

  REMARKS:

  If no file name is specified, a dialog is presented to allow
  navigation to the destination directory and specification of the
  file name.

  Mark lines to be copied with the CC line command.  The current
  edit file is not affected by the REPLACE operation.

  Mark lines to be moved with the MM line command.  Moved lines are
  deleted from the current edit file by the REPLACE operation.

  Note:  Modern command EXPORT provides the functionality of CREATE
  and REPLACE in a single command and uses the mouse to select lines
  to be copied.

  -----------------------------------------------------------------
  TOPIC: RESET
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to reset CHANGE highlighting, pending line
  commands, error lines, excluded lines, FIND highlighting, label
  lines, current selection, and special lines.

  FORMAT:

  RESET
    [CHANGE | CHA | CHG]
    [COMMAND | COM | CMD]
    [ERROR | ERR]
    [EXCLUDED | EXC | X]
    [FIND | FIN | F]
    [LABEL | LAB]
    [SELECTION | SEL]
    [SPECIAL | SPE]
    [label1 [label2]]

  REMARKS:

  If no parameters are specified, all types except LABEL are reset.

  If any parameter is specified, only the specified type or types
  are reset.

  If a label range is specified, only lines within the label range
  are reset.  If LABEL2 is not specified, .ZLAST is assumed.

  -----------------------------------------------------------------
  TOPIC: RFIND
  -----------------------------------------------------------------

  PURPOSE:

  Same as [F5] key.  Use this command to repeat the last FIND
  command.

  FORMAT:

  RFIND   [CHANGE ...parameters...  |  FIND ...parameters...]

  REMARKS:

  See primary command FIND for details.

  RFIND allows you to optionally specify a valid CHANGE or FIND
  command as a parameter. In this case, STRING1 specified in the
  change command is found, but the change is not applied. In
  practice this feature is always used in conjunction with function
  key [F5]:

  *  Type the CHANGE command in the primary command field.

  *  Press [F5] to find the first occurrence of STRING1 but not
     change it.

  *  After inspecting the found string, if you want to apply the
     change, press [F6].

  *  In this way you use [F5] and [F6] to inspect and optionally
     change each occurrence of the string.

  When RFIND reaches the end of the file (or beginning in the case
  of PREV) without finding STRING1, it issues message "RFIND at
  bottom of data.". At this point, you can invoke RFIND again to
  resume the find operation at the opposite end of the file.

  -----------------------------------------------------------------
  TOPIC: RIGHT
  -----------------------------------------------------------------

  PURPOSE:

  Same as [F11] key.  Use this command to scroll toward the right
  edge of the displayed text.

  FORMAT:

  RIGHT  [ PAGE | HALF | CURSOR | DATA | MAX | number ]

  REMARKS:

  If no parameter is specified, the display is scrolled based on the
  the OPTIONS menu, SCROLLMODE item setting.

  If PAGE is specified, the display is scrolled right the full width
  of the data display area.

  If HALF is specified, the display is scrolled right one half of
  the width of the data display area.

  If CURSOR is specified, the display is scrolled right until the
  data column on which the cursor rests is flush with the left edge
  of the data display area.

  If DATA is specified, the display is scrolled right the full width
  of the data display area minus one column.

  If MAX is specified, the display is scrolled right such that the
  last data column is in the first display column (column 7).

  If a number is specified, the display is scrolled right by the
  number specified.

  -----------------------------------------------------------------
  TOPIC: RULER
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to enable or disable a floating COLS style ruler.

  FORMAT:

  RULER  [ON | OFF]

  REMARKS:

  If ON is specified, the ruler is enabled. A COLS style ruler is
  continuously displayed at the top of the Edit client area.

  If OFF is specified, the ruler is disabled and the ruler window is
  dismissed.

  If no parameters are specified, the ruler is toggled.
  If currently ON, it is set to OFF.
  If currently OFF, it is set to ON.

  If field colorization is specified for the file type being edited,
  the ruler takes precedence over field colorization titles.

  -----------------------------------------------------------------
  TOPIC: SAVE
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to save the current file without terminating the
  edit session.

  FORMAT:

  SAVE

  REMARKS:

  To save the file under a different path or name, use Edit Primary
  Command SAVEAS.

  If you specified BACKUP in the File Profile, the original version
  of your file is saved in same directory with name "original-
  name.BAK". If you specified an alternate backup directory in the
  File Profile, the original file is saved there instead.

  -----------------------------------------------------------------
  TOPIC: SAVEAS
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to save the current file under a new name,
  terminate the current Edit or Browse, then start a new edit on the
  new file.

  FORMAT:

  SAVEAS  [filename]

  REMARKS:

  If "filename" is not specified, a dialog is presented which lets
  you specify the new file name.

  If the current file is in Browse, after SAVEAS, the new file will
  be in edit.

  If the current file is READ-ONLY, after SAVEAS, the new file will
  be READ-WRITE.

  -----------------------------------------------------------------
  TOPIC: SELECT
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to set the current selection.

  FORMAT:

  SELECT  [ ALL | EOL | ...selection... ]

  REMARKS:

  This command is primarily intended for use in edit macros.

  If ALL is specified, all lines in the file are selected.

  If EOL is specified, all text from the current cursor position to
  the end of line is selected.

  To specify "...selection..." there are five positional parameters
  required. They must be separated by blank. The required parameters
  follow:

  Mode

     The mode may be:

     STREAM for partial and/or complete lines, or
     WHOLELINE for complete lines only, or
     BLOCK for a rectangular area.

  Start Line

     The ordinal line number or label for the first file line in the
     selection. Must be greater or equal to 1.

  Start Column

     The first data column in the selection. Must be greater or
     equal to 1.

  End Line

     The ordinal line number or label for the last file line in the
     selection. Must be greater or equal to "Start Line".

  End Column

     The last data column in the selection.  "End Column" must be
     greater or equal to "Start Column".

  -----------------------------------------------------------------
  TOPIC: SETEOR
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to set the EndOfRecord type for the current Edit
  file.

  FORMAT:

  SETEOR  EOR-type  [MIXEXTOK]

  REMARKS:

  EOR-type
   
     Required.
      
     Specifes the "EndOfRecord" type desired, one of:
   
        CR
         
           When the file is saved, the end of each record on disk is
           set to CR (x'0D', Carriage Return).

        LF
         
           When the file is saved, the end of each record on disk is
           set to LF (x'0A', Line Feed).

        CR+LF

           When the file is saved, the end of each record on disk is
           set to CR+LF (x'0D0A', Carriage Return + Line Feed).

  MIXEXTOK
   
     Optional.
      
     If a file loaded into Edit defaults to non-matching File Profile,
     for example file "test.abc" defaults to File Profile "TXT", it is
     possible that the actual file format may differ from the File
     Profile setting. In this case, changing the EOR could corrupt the
     file.
      
     To prevent this type of error SETEOR does not allow the operation
     to proceed when the File Profile type does not match the file
     extension,
      
     To override this safety feature you can specify MIXEXTOK which
     forces the operation to proceed even when the File Profile type
     does not match the file extension.
   
  See also:  OPTIONS, item EDITOR, field "ShowEorType".
   
  -----------------------------------------------------------------
  TOPIC: SHOWEOL
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to show true end of line.

  FORMAT:

  SHOWEOL  [ON | OFF]

  REMARKS:

  This command is primarily used for diagnostic purposes. SPF/SE
  shows lines in such a way that the columns following true end of
  line are displayed as blanks with the same background color as the
  data portion of the line. In this mode of display, it can not be
  visually determined whether the line ends on the last non-blank
  character or if it has one or more blanks at its end.

  In some cases trailing blanks in program source can cause
  problems. If you want to see where lines really end use "SHOWEOL
  ON". Also see the "HEX" primary command for viewing hexidecimal
  content of lines.

  If ON is specified, columns following true end of line are
  displayed as blanks with the same background color as the line
  command field thus showing the true end of line.

  If OFF is specified, columns following true end of line are
  displayed as blanks with the same background color as the data
  portion of the line.

  If no parameters are specified, the SHOWEOL state is toggled.
  If currently ON, it is set to OFF.
  If currently OFF, it is set to ON.

  -----------------------------------------------------------------
  TOPIC: SORT
  -----------------------------------------------------------------

  PURPOSE:

  Performs sorts of the current Edit file with control by:

  *  full or partial record

  *  excluded or non-excluded records

  *  full or partial file

  *  one or more fields

  *  ascending or descending order by field

  FORMAT:

  SORT  [sort-field_1 ... sort-field_n]
        [X | NX]
        [label1 [label2]]

  REMARKS:

  If "X" is specified, only excluded lines are sorted.

  If "NX" is specified, only non-excluded lines are sorted.

  If a label range is specified, only lines within the label range
  are sorted. If LABEL2 is not specified, .ZLAST is assumed.

  To abort a sort in mid-stream, press the [ESC] key. Immediately
  after that, cancel out of the file to restore the original order.

  Each sort field has the following format:

  [[A | D] start-column [end-column]]

  If "A" is specified, it must precede "start_column".  It causes
  data to be ordered in ascending sequence.  This is the default
  order.

  If "D" is specified, it must precede "start_column".  It causes
  data to be ordered in descending sequence.

  When specifying start and end columns:

  *  "start-column" specifies the left-most position of the sort
     field

  *  "end-column" specifies the right-most position of the sort
     field

  *  "start-column" must be less or equal to end-column

  *  neither specification can be outside the current BOUNDS

  If "start-column" is specified, but "end-column" is not,
  "end-column" is set to the current right bound.

  If no sort columns are specified, the default start and end
  columns are the current BOUNDS.

  The above parameters indicate which columns should be compared
  when ordering data. These parameters are common to computer based
  sorting programs.

  There is an aspect of SORT which is unique to SPF/SE:

  WHEN THE BOUNDS ARE SET TO LESS THAN THE FULL RECORD, ONLY THE DATA
  WITHIN THE BOUNDS IS SORTED.

  The effect is that the sorted data is re-ordered while the data to
  the left or right of the bounds is not. Thus the record content is
  changed from its original form.

  In the normal case, where the BOUNDS are at 1 and MAX record
  length, SPF/SE sorts the entire record.

  Warning:  SORT is a very powerful command; its use requires care.
  It is easy to destroy a file by issuing SORT with the BOUNDS set
  incorrectly.

  EXAMPLE:

  Sort full records,

  BOUNDS    (to be safe reset BOUNDS to defaults BEFORE a SORT)
  SORT

  Sort full records in descending order:

  SORT D

  Sort full records, columns 5 through 15 inclusive, in ascending
  order:

  SORT 5 15

  Sort full records, from lines .A to .B inclusive in descending
  order:

  SORT D .A .B

  Sort full records, major field columns 5 through 10, in descending
  order, minor field columns 1 through 2 in ascending order:

  SORT D 5 10 A 1 2

  Sort full records, non-excluded lines only, in ascending order:

  SORT A NX

  Sort partial record, columns 30 through 45, in ascending order:

  BOUNDS 30 45
  SORT

  NOTE: in the above example, columns 1 through 29, and 46 to end of
  record are not re-ordered.

  Sort full records, columns 5 through right bound, in ascending
  order:

  SORT 5

  Sort full records, column 5 through right bound, in descending
  order:

  SORT D 5

  -----------------------------------------------------------------
  TOPIC: STOLOWER
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to change all alphabetic text in the current
  selection to lowercase.

  FORMAT:

  STOLOWER

  REMARKS:

  This command works on whole line selections only.

  -----------------------------------------------------------------
  TOPIC: STOUPPER
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to change all alphabetic text in the current
  selection to uppercase.

  FORMAT:

  STOUPPER

  REMARKS:

  This command works on whole line selections only.

  -----------------------------------------------------------------
  TOPIC: SXCLUDE
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to exclude all lines in the current selection.

  FORMAT:

  SXCLUDE

  REMARKS:

  This command works on whole line selections only.

  -----------------------------------------------------------------
  TOPIC: TAGFIND
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to dynamically find a function, typedef,
  enumeration, or variable within the current edit file or other
  program source files.

  FORMAT:

  TAGFIND  selector

  REMARKS:

  This command is used in conjunction with external utility CTAGS to
  give you instant access to specific elements of your program
  source.  The CTAGS utility supports the following programming
  languages:

     C
     C++
     COBOL
     EIFFEL
     FORTRAN
     JAVA
     LISP
     PERL
     SCHEME
     and others...

  To use the TAGFIND command, you must first use external utility
  CTAGS to create a database from your program source. The CTAGS
  database contains information derived from your program source
  files. For example, after running the CTAGS utility the database
  might contain:

  * all function names and thier respective source file names
  * all "typedef" names and their respective source file names
  * in each record a specific find string to use for positioning

  We recommend that you re-create the CTAGS database when you make
  significant changes to your program source. It is up to you to
  decide when that has occured.

  The CTAGS utility and its use are discussed in the online HELP
  under item CTAGS. You can execute the CTAGS utility via the TTY
  console using command:

     "\spf-install-directory\bin\ctags" ...parameters...

  A requirement of the CTAGS utility is that you provide a list of
  all your program source files. In our own use, we obtain this list
  by doing an "ls - l" with redirected output. For example, to list
  this product`s source files we execute the following commands:


     ls -l \home\username\source\main\*.c  > \home\username\temp\main-c.txt
     ls -l \home\username\source\main\*.h  > \home\username\temp\main-h.txt
     ls -l \home\username\source\edit\*.c  > \home\username\temp\edit-c.txt
     ls -l \home\username\source\edit\*.h  > \home\username\temp\edit-h.txt
     ls -l \home\username\source\cterp\*.c > \home\username\temp\cterp-c.txt
     ls -l \home\username\source\cterp\*.h > \home\username\temp\cterp-h.txt

  To list all your program source files, make a batch file similar
  to the above command set. which lists If you do not know how to
  create and/or execute batch files, see your PC or Network
  administrator for assistance.

  The resulting "dir" file lists in their raw condition are not in
  the correct format for input to CTAGS. To get a list for use with
  CTAGS, we edit each list file (e.g. "edit main-c.txt") in turn and
  execute edit macro "listfixup" provided with SPF/SE, then save.

  We now have six clean file lists representing the six major
  sources for our program. The next thing we have to do is run the
  CTAGS utility against each of these lists appending the output to
  the CTAGS database (in our case file
  "\home\username\temp\tags.txt"). We invoke the following batch
  file:

     "\spf-install-directory\bin\ctags-se.bat"

  What this BAT file does is apply the CTAGS utility to all "*.c"
  and "*.h" files in the six file lists creating a database which
  contains all the information requested in the  "--c-types"
  parameter. The output of each invokation is appended to file:

     \home\username\temp\tags.txt

  If you have any problems understanding or running the CTAGS
  utility, please contact the program`s author. Click on menu HELP,
  item CTAGS, sub-item SOURCE for his website and e-mail address.

  The TAGFIND "selector" parameter is a single alpha character that
  specifies the type of information you want to access. This
  selector corresponds to the "--c-types" parameter values of the
  CTAGS command.  Click on menu HELP, item CTAGS, sub-item COMMAND
  OPTIONS for a complete discussion of this topic. In this
  discussion we list a subset of the program element selectors as an
  example of what can be found:

     c - classes
     d - macro definitions
     e - enumerators
     f - function definitions
     g - enumeration names
     m - class, struct, and union members
     n - namespaces
     s - structure names
     t - typedefs
     u - union names
     v - variable definitions

  After creating the CTAGS database, you must set two system
  variables required by the TAGFIND command. To set system
  variables:

  In Menu Style "Legacy", invoke primary option DIALOG TEST, click on
  button VARIABLES, click on NEW.

  In Menu Style "Modern", invoke primary option UTILITIES, sub-option
  DIALOG TEST, click on button VARIABLES, click on NEW.

  First set system variable ZCTAGSACTION to value "browse" or
  "edit".  This tells the TAGFIND command which action to take when
  information is requested. Also set "persist" to ON so that SPF/SE
  will remember this variable across sessions.

  Second set system variable ZCTAGSFILE to the fully qualified file
  name for the CTAGS database, in our example
  "\home\username\temp\tags.txt". This tells the TAGFIND command
  where the CTAGS database is. Also set "persist" to ON so that
  SPF/SE will remember this variable across sessions.

  Now in edit on any program source file that uses program elements
  that are in the CTAGS database, you can position the cursor on a
  function name, typedef type, enumeration, or variable, then invoke
  the TAGFIND primary command with the appropriate selector (e.g.
  "tagfind f" to jump to a function definition). TAGFIND will invoke
  browse (or edit) on the program source file where that program
  element is defined and position to the requested element.

  Invoking TAGFIND from the primary command field is clumsy. For
  ease of operation set up one or any combination of the following
  shortcuts:

  *  Set up one function key with mapping "TAGFIND F" to jump to
     function definitions and another function key with mapping
     "TAGFIND T" to jump to typedefs. Click on menu OPTIONS, item
     KEYS to set up function keys.

  *  Set up the edit popup menu to include "TAGFIND F" and "TAGFIND
     T" commands. Click on menu OPTIONS, item EDITOR, add these
     commands enclosed in double quotes to field
     "PopupMenuPrimaryCommands".

  There are many variations on the above procedures that will
  produce good results. After you have used the recommended methods
  successfully you can tune the process to suit your unique
  requirements.

  If you submit a problem report related to TAGFIND, be sure to
  include the following items:

  *  The TAGFIND command which you invoked and parameters specified

  *  The current setting for system variable ZCTAGSACTION

  *  The current setting for system variable ZCTAGSFILE

  *  The file specified in system variable ZCTAGSFILE (as an
     attachment)

  *  The file you were editing when you invoked the TAGFIND command
     (as an attachment)

  *  The file where the requested program element is defined (as an
     attachment)

  -----------------------------------------------------------------
  TOPIC: TEMPLATE
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to insert a program source phrase at the current
  cursor position.

  FORMAT:

  TEMPLATE  [ template-name ]

  REMARKS:

  If no template name is specified, a dialog is presented with a
  list of available templates for the current Edit file type.

  The specified (or selected) template is inserted into the current
  program source at the current cursor position above the current
  line.

  Templates are individual files of type *.TPL containing one or
  more lines of program source entered as you want them to appear in
  your program. Program style is controlled by you.

  After the template is inserted, the final cursor position is
  determined by the placement of symbol "%cursor%" in the template
  file.

  If the "%cursor%" symbol is not specified in the template file,
  the cursor is placed on the first character of the first template
  line.

  Templates are bound by file type. For example, in File Profile
  "C", field "Template type" is set to "C". Corresponding template
  files are stored in sub-directory
  "\spf-install-directory\templates\c".

  Template files have type ".tpl", thus in the example above, the
  template for the "C" program "if" statement would be found in
  "\spf-install-directory\templates\con\if.tpl".

  Each programming language has its own sub-directory of language
  specific templates.

  As distributed, SPF/SE only provides templates for programming
  language "C". Templates for other programming languages will be
  added in future releases.

  SPF/SE templates are not exhaustive but merely serve as examples
  of some commonly used elements of the language by our estimation.
  In all cases consult your language specification for a complete
  list of program phrases, reserved words, and functions that may be
  of interest to you. Add as desired.

  Empty sub-directories have been created for a number of
  programming languages. If your chosen programming language type is
  not present, feel free to create it. A list of default
  sub-directories follows:

  c    - templates for programming language C
  cbl  - templates for programming language COBOL
  cob  - templates for programming language COBOL
  cpp  - templates for programming language C++
  htm  - templates for programming language HTML
  java - templates for programming language JAVA
  jcl  - templates for programming language IBM Job Control Language
  pas  - templates for programming language Pascal
  pl1  - templates for programming language IBM PL/1
  pli  - templates for programming language IBM PL/1

  If you are not programming in "C", feel free to create templates
  for your chosen programming language in the style that you desire.
  For each program source phrase simply edit a file with the
  corresponding name in the proper sub-directory.

  For example to add a template for the COBOL language EVALUATE
  statement, you would edit new file
  "\spf-install-directory\templates\cob\evaluate.tpl".

  If your COBOL source is kept in files of type CBL, you would edit
  new file "\spf-install-directory\templates\cbl\evaluate.tpl".

  For convenience of operation, it is recommended that you add the
  "Template" command to the Edit Popup Menu. See menu OPTIONS, item
  EDIT, field "PopupCommands".

  If you want to over-ride the templates supplied with the system,
  click menu OPTIONS, item PATH, in field "Templates" prepend your
  over-ride sub-directory in front of the default subdirectory
  separated by a semi-colon.

  You can also directly modify the template files if desired. In
  this case, make sure you make a backup of the modified files as
  they could be overlaid by a future install.

  Note:  Templates do not participate in UNDO logging or MASK.

  Note:  Do not put TAB characters in template files.

  -----------------------------------------------------------------
  TOPIC: TOP
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to position to the top of the file.

  FORMAT:

  TOP

  REMARKS:

  None.

  -----------------------------------------------------------------
  TOPIC: UNDO
  -----------------------------------------------------------------

  PURPOSE:

  Undo the last Edit modification.

  FORMAT:

  UNDO  [nnn]
        [ALL]
        [CLEAR]
        [ON | OFF]

  REMARKS:

  UNDO with no parameters undoes the last edit modification. You can
  issue the command repeatedly to UNDO progressively older changes.

  UNDO nnn (an integer number) undoes that number of modifications
  or until the UNDO Journal is empty.

  UNDO ALL undoes all modifications in the UNDO Journal.

  UNDO CLEAR resets the UNDO Journal to the empty state freeing all
  the resources held by UNDO. A new UNDO Journal begins on the next
  Edit transaction.

  UNDO ON turns UNDO on allowing you to undo Edit modifications.

  UNDO OFF turns UNDO off. When UNDO is off, modifications to the
  file can not be reversed without canceling the Edit session.

  The following file modifying commands are NOT SUPPORTED by UNDO:

  NUMBER    (Edit primary command)
  RENUMBER  (Edit primary command)
  SORT      (Edit primary command)
  UNNUMBER  (Edit primary command)
  MAKEDATA  (Edit line command)

  Note:  UNDO processing and memory overhead may be noticeable on
  machines with slow processors and/or small memory configurations.

  The amount of memory being used by UNDO is continuously displayed
  at the right end of the status line. If you sense that SPF/SE
  performance is degrading, examine this number. It is system
  dependent as to IF, or WHEN performance will be affected in a
  noticeable way.

  If you do see a performance degradation, consider running with
  UNDO off, or issue primary command UNDO CLEAR or SAVE to
  periodically free the UNDO resources.

  -----------------------------------------------------------------
  TOPIC: UNNUMBER
  -----------------------------------------------------------------

  PURPOSE:

  Use this command to unnumber the file based on the File Profile.

  FORMAT:

  UNNUMBER  [ COBOL | STANDARD | COB+STD | OTHER ]  [QUIET]

  REMARKS:

  If no parameter is specified, the line number type is derived from
  the current File Profile.

  If a line number type is specified, the unnumber operation
  proceeds regardless of the number field settings in the current
  File Profile.

  This command turns line numbering off in the current File Profile
  and clears existing line numbers from each record.

  For COBOL line numbering, columns 1 to 6 are cleared.

  For STANDARD line numbering, columns 73 to 80 are cleared.

  For COB+STD line numbering, columns 1 to 6 are cleared.

  For OTHER line numbering, the field defined by "NumColStart" and
  "NumColEnd" in the File Profile is cleared.

  If QUIET is specified, information messages are suppressed. This is
  primarily used in macros.

  Also see NUMBER and RENUMBER Edit primary commands.

  See general command PROFILES for details on line numbering
  options.

  -----------------------------------------------------------------
  TOPIC: UP
  -----------------------------------------------------------------

  PURPOSE:

  Same as [F7] key.  Use this command to scroll toward the top of
  the file.

  FORMAT:

  UP  [ PAGE | HALF | CURSOR | DATA | MAX | number ]

  REMARKS:

  If no parameter is specified, the display is scrolled based on the
  the OPTIONS menu, SCROLLMODE item setting.

  If PAGE is specified, the display is scrolled up one full display
  frame.

  If HALF is specified, the display is scrolled up one half display
  frame.

  If CURSOR is specified, the display is scrolled up until the line
  on which the cursor rests becomes the bottom display line. If the
  cursor is already resting on the bottom display line, the display
  is scrolled up one full display frame.

  If DATA is specified, the display is scrolled up one full display
  frame minus one line.

  If MAX is specified, the display is scrolled to the top of the
  file.

  If a number is specified, the display is scrolled up the number of
  lines specified.

