NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
R-4
Examples—REPORT Option
See the EMS Manual for more information about EMS in general. See the NonStop
SQL/MP Messages Manual for information about EMS messages issued by
NonStop SQL/MP software.
Default EMS reports for SQL operations
The EDIT file RPTSQL on the subvolume on which NonStop SQL/MP is installed
(normally $SYSTEM.SYSTEM) contains a TACL script that generates EMS reports
for SQL operations. You can use it to produce default reports or customize a copy of
it to produce variations on the default reports.
For more information, see the comments within the file RPTSQL itself.
Examples—REPORT Option
The following CREATE INDEX command uses the REPORT option to explicitly
turn on the sending of EMS messages associated with the operation. Because the
REPORT option does not specify an EMS collector, messages go to $0, the default
EMS collector.
CREATE INDEX $DK.REG1.IREL2 ON $DK.APPL.RECORDS(COL1, COL6)
WITH SHARED ACCESS NAME CREATE_INDEX_IREL2
REPORT ON
COMMIT WHEN READY
ONCOMMITERROR COMMIT BY REQUEST;
Following is a sample report produced from EMS messages sent by the operation
started with the CREATE INDEX statement in the previous example. The actual
report also includes the date and time to the left of the process identification that
begins each messages, but the date and time columns are not shown here because of
the width of the report.
\SQ.3,49 TANDEM.SQL.D30 000001
CREATE_INDEX_IREL2 command started
\SA.3,49 TANDEM.SQL.D30 000002 Target
\SA.DK.REG1.IREL2 created
\SA.3,49 TANDEM.SQL.D30 000003 All target
partitions have been created
Time to create targets: 0 secs
\SA.$X314 TANDEM.SQLAUDIT.D30 000002 ** Audit Fixup
Status **
Time since last status: 0 secs
Distance to audit EOF : ? kbytes
Records read : 0 recs