Neoview Command Interface (NCI) Guide (R2.5)

5 Running Scripts in NCI
In NCI, you can run script files.
“Creating a Script File” (page 61)
“Running a Script File” (page 62)
“Logging Output” (page 63)
“Running Scripts in Parallel” (page 63)
Creating a Script File
A script file that you run in NCI must be an ASCII text file that contains only these elements:
“SQL Statements or Other Commands” (page 61)
“NCI Commands” (page 61)
“Comments” (page 61)
“Section Headers” (page 62)
For an example, see “Example of a Script File” (page 62).
NOTE: You cannot use shell commands in a script file that you run in NCI. To create shell
scripts that run NCI, see Chapter 6 (page 65).
SQL Statements or Other Commands
Script files support any of the various SQL statements or other commands that are supported in
one of these NCI modes:
Supported CommandsNCI Mode
SQL statements. For more information, see the Neoview SQL Reference Manual.SQL
Connectivity service commands. For more information, see Appendix B (page 153).
NOTE: A new set of connectivity commands can be run in SQL mode using the CMDOPEN
and CMDCLOSE commands. For more information, see Appendix C (page 155).
CS
Neoview Workload Management Services (WMS) commands. For more information, see the
Neoview Workload Management Services Guide.
WMS or NS
Security management commands. For more information, see the Neoview User Management and
Security Administration Guide.
SEC
For more information about the modes, see the “MODE Command” (page 95).
NCI Commands
Most NCI commands are supported in script files except the FC command. For a list of the
interface commands, see Appendix A (page 71).
Comments
You can include comments anywhere in a script file. SQL also supports comments. Comments
are useful for documenting the functionality of the script file and for debugging. When debugging,
use comments to disable specific statements or commands without removing them from the
script file.
To denote a comment in a script file, use two hyphens before the comment:
-- comment
The end of the line marks the end of the comment.
Creating a Script File 61