NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
V-5
Examples—VERIFY
Examples—VERIFY
The following example verifies objects and locates invalid programs in the SALES
catalog:
>> VERIFY *.*.* FROM CATALOG SALES;
--- Verifying $VOL1.SALES.ASSERTS
--- $VOL1.SALES.ASSERTS Verified.
--- Verifying $VOL1.SALES.BASETABS
--- $VOL1.SALES.BASETABS Verified.
...
(any invalid programs are listed)
...
--- SQL operation complete.
The following example shows the verification of the EMPLOYEE table:
>> VERIFY $VOL1.PERSNL.EMPLOYEE;
--- Verifying $VOL1.PERSNL.EMPLOYEE
--- $VOL1.PERSNL.EMPLOYEE Verified.
--- SQL operation complete.
The following command creates a command file named RECOMPF for recompiling
invalid SQL programs in Guardian files in the SALES catalog:
>> VERIFY $VOL1.SALES.* FROM CATALOG SALES WHERE SQLPROGRAM
+> SOURCE RECOMPF CLEAR;
...
PROGRAM \SYS.$VOL1.SALES.PROGA
*** WARNING $VOL1.SALES.PROGA is an invalid program.
The RECOMPF file contains the following command:
SQLCOMP /IN \SYS1.$VOL1.SALES.PROGA, OUT file/STOREDEFINES
The current SQLCI OUT file is used in the SQLCOMP command.
Versions
A version is associated with each component of NonStop SQL/MP software; with each
NonStop SQL/MP catalog, object, or program; and with each host language compiler