HP 3000 Manuals

XEQ [ IMAGE/SQL Administration Guide ] MPE/iX 5.0 Documentation


IMAGE/SQL Administration Guide

XEQ 

Executes IMAGE/SQL utility 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.

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 IMAGE/SQL utility 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, the IMAGE/SQL utility 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 the IMAGE/SQL utility 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, the
IMAGE/SQL utility 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,
the IMAGE/SQL utility closes the XEQ file and terminates the job.

Example 

In the following example, the contents of the file DOATTACH are listed
using the MPE/iX PRINT command.  The XEQ command then executes the
commands stored in the DOATTACH file.  Because commands are not displayed
as they are executed, it can 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