1 EXECUTE
  Syntax: EXECUTE filename  [parameter_list]
   where: filename        is the filename with the commands
          parameter_list  are parameters you want to pass

  This command  is an alias  for `READ  COMMAND'. It  executes a series of
  commands which you have  written to a file. You  can input parameters to
  the file and they  are referenced  with the syntax  `@1', `@2', etc. You
  are allowed up to 9 parameters and  the parameters can be either numbers
  or character strings. Parameters  are separated by spaces. If you omit a
  parameter in the  `EXECUTE' command, you will  be prompted for its value
  the first time it is referenced.  Blanks are used to delimit parameters.
  Therefore,  if a   parameter  contains an  imbedded  blank it  should be
  included in single or double  quotes. e.g. 'This name' or "Who is this".
!^
  A null parameter can be passed as ''.
!A null parameter can be passed as '\,'.
  You  can  also use  the  `INQUIRE'  command to  ask  for the  value of a
  parameter and/or specify a default value for a parameter.
  See HELP INQUIRE for more details.

  The  default filename qualifier is `.mnf'. You can exit a command
  file at any point by putting the `RETURN' command in it.
  Comment lines begin with a `!' by default. Use the
  `SET CHARACTER COMMENT' command to change the comment character.
  Continuation lines are denoted by a `-' as the last character of the
  line. Use the `SET CHARACTER CONTINUATION' command to change the
  continuation character.

  Within macros you can have `DO' loops (see HELP DO for more details) and
  `IF' blocks (see HELP IF for more details).

  If you give a `PLOT' command in the file and it is not the first picture
  this Mn_Fit session you have to  give a `<CR>' for the next plot. If you
  give any  other character  the plot  command will be  skipped and if you
  give a `q' the file will be aborted. Use the `SET WAIT_CR OFF' command
  to avoid this.

  If you do not want to give the directory name with the filename, you
  can use the `SET PATH' command to specify a search path.
  See HELP SET PATH for more details.

  WARNING: In Mn_Fit versions before 4.07/32 you should not include
  comment lines inside `DEFINE' commands, if there is a `DO' loop
  inside the same file. Inline comments are OK.  Mn_Fit keeps track of
  which line is being read for future use in IF blocks and DO
  loops. If you have comment lines inside the DEFINE command, the
  counting of the line number gets out of sync. As a result any DO
  loops that are executed after the definitions (within the same
  macro) will not work properly. After the first run through the loop
  Mn_Fit will rewind the file and then jump to the wrong line for the
  second and future runs through the loop.

2 Examples

!\begin{enumerate}
!\item
!^
  Example 1:
  You write 2 files TEST.MNF and TEST2.MNF with the following commands:
    !
    ! This file fetches, renames and plots a histogram
    !
    inquire 1 'Give filename'
    inquire 2 'Give histogram number(s)'
    FET @1 @2
    REN @2 1000&@3
    PLOT 1000&@3
    INDEX
    EXEC TEST2 1000 @3 2000

  The file TEST2.MNF contains the following commands:
    COP @1&@2 @3
    PLOT @3
    ! This is a way to look at a plot before deciding whether you want
    ! a hardcopy for example
    inquire 4 'Give extra command (e.g. hardcopy)'
    @4
    HIST DUMP @3
    inquire -4 'Give extra command or <CR>'
    @4
    RETURN
    ! The following command will not be executed
    HELP

  To execute the file you give the command:
    EXEC TEST.MNF 3S_EXCL.HIS 300 10

  and the following commands will be executed:
    FET 3S_EXCL.HIS 300
    REN 300 1000&10
    PLOT 1000&10
    INDEX
    EXEC TEST2 1000 10 2000

  and TEST2.MNF will execute the following commands:
    COP 1000&10 2000
    PLOT 2000
    ! This is a way to look at a plot before deciding whether you want
    ! a hardcopy for example
    Give extra command: HARD P
    HIST DUMP 2000
    Give extra command or <CR>: <CR>
    RETURN

!\end{enumerate}

