|
|
Getting Started with HP IMAGE/SQL: HP 3000 MPE/ iX Computer Systems > Chapter 5 IMAGE/SQL TasksUsing IMAGE/SQL Utility Command Files |
|
This task describes how to execute an IMAGE/SQL utility command file in interactive or batch mode. Getting Ready An IMAGE/SQL utility command file can be created with a text editor or can be produced as part of the logging process (see Task Reference). If you create or edit this file with an editor, note that it must be kept unnumbered. In the following examples, the file UPDATYPE contains the following commands:
Note that the commands in this command file assume the TurboIMAGE/XL database is already attached to the DBEnvironment. If you wish to see commands and comments as the command file is executed, make sure the ECHO option is on (see Task Reference). Performing the Task The XEQ command allows you to specify a file containing IMAGE/SQL utility commands as its parameter. To interactively execute commands listed in a command file, run the IMAGE/SQL utility by typing RUN IMAGESQL.PUB.SYS and then issue the XEQ command. Note that in this example ECHO is off.
The MUSIC database, previously attached to the MusicDBE DBEnvironment, and data type mapping information has been updated for the ALBUMS.DATERECORDED column of the ALBUMS table. You can also issue XEQ commands in batch mode. The following job stream file contains XEQ commands that execute the commands in the UPDATYPE file.
Note that in batch mode, if an error occurs, the job terminates. The remaining commands are flushed. Task Reference
|
|