[next] [previous] [contents]

  CREPRC

  Creates a detached interactive process with a mailbox com-
  mand stream.

  Format
  CREPRC[/qualifiers]

  Qualifiers
  /COMMAND=(command[,...])

  Specifies one or more DCL commands to be sent to the
  process.
  The MAILBOX command may also be used to send com-
  mands to a process created by the CREPRC command.

  Note that the last command sent to a process created by the
  CREPRC command, should be a STOP/ID=0 or LOGOUT
  command, otherwise the process will continuously be waiting
  for more commands from its command stream mailbox.

  /DEFINE_LOGICAL=logical-name
  Specifies a logical name that is set to the name of the created
  processes command stream mailbox device. The logical name
  is placed in the process logical name table.

  /ERROR=label
  Transfers control to the location specified by the label key-
  word (in the current command procedure) when a create
  error occurs. If no error routine is specified and an error
  occurs during the creation of the process, the current ON
  condition action is taken.

  Overrides any ON condition action specified.
If an error occurs and the target label is successfully given
  control, the reserved global symbol $STATUS retains the
  error code.

  /NAME=process-name
  Defines a name for the created process. The process name
  can have from 1 to 15 alphanumeric characters. The pro-
  cess name is implicitly qualified by the group number of the
  process's user identification code (UIC).

  If you do not specify a process name, the created process has
  a null name by default.


  Examples
  1.

        $ MAILBOX/CREATE CMD_MBX