HP 3000 Manuals

XEQ [ ALLBASE/Turbo CONNECT Administrator's Guide ] MPE/iX 5.0 Documentation


ALLBASE/Turbo CONNECT Administrator's Guide

XEQ 

Executes ATCUtil commands from a command file instead of the standard
input device.

Syntax 

X[EQ] FileName 

Parameters 

FileName   is the name of an ASCII file containing commands and
           parameters.  (This is an ATCLOG file from a previous run of
           ATCUtil.)

Prerequisites 

None, but for successful execution of the command file, you must meet
prerequisites of all commands in the command file.

Description 

Use the XEQ command to execute ATCUtil commands from a file instead of
the standard input device.  For example, if an ATCLOG file has been saved
as a permanent file, it can be used to reissue the commands stored in the
log file.

When an XEQ command is entered, ATCUtil reads the specified file and
executes the commands until it reaches the end-of-file.  When the
end-of-file is reached, control returns to the original command input
device (in session mode, the terminal, or in batch mode, the batch input
device).  Note that unless the command file contains an EXIT or QUIT
command, you remain in ATCUtil when the XEQ command terminates.

During the execution of command files, what you see at the terminal
depends on the setting of the ECHO command.  When ECHO is on, ATCUtil
displays lines at the terminal as they are read from the command files.
Both comments and commands in the file are displayed.  Regardless of the
setting of the ECHO command, normal command output and error messages are
displayed at the terminal.

In batch mode, if an error occurs during the execution of an XEQ file,
ATCUtil closes the XEQ file and terminates the job.

Example 

In the following example, first the contents of the file DOATTACH are
listed, using the MPE XL PRINT command.  The XEQ command then executes
the commands stored in the DOATTACH file.  Because commands are not
displayed as they are executed, it must be assumed that the ECHO command
option is off.
___________________________________________________________________
|                                                                 |
|     >>:PRINT DOATTACH                                           |
|     SET TURBODB ORDER4      <=== contents of XEQ file           |
|     SET SQLDBE PARTSDBE     <===    "         "                 |
|     ATTACH                  <===    "         "                 |
|     QUIT                    <===    "         "                 |
|     >>                                                          |
|     >>XEQ DOATTACH   <=== XEQ command issued                    |
|     Split 1 compound source field(s) (ATCWARN 32063).           |
|     Mapped 15 source table/source field name(s) (ATCWARN 32062).|
|     Mapped 1 incompatible source type(s) (ATCWARN 32061).       |
|                                                                 |
|     END OF PROGRAM                                              |
|     :                                                           |
___________________________________________________________________



MPE/iX 5.0 Documentation