SQL/MX 3.2 Management Manual (H06.25+, J06.14+)

Table Of Contents
Display all the Invalid Modules and Their Corresponding Source SQL File Names Associated With
an Object
>>DISPLAY USE OF INVALID MODULES FOR CAT.SCH.TABLE1;
Object: CAT.SCH.TABLE1
Module: CAT.SCH.MODTABLE1
Source Name: /E/NODE11/modulelist/module1.sql
Module: CAT.SCH.MODTABLE2
Source Name: /E/NODE11/modulelist/module2.sql
Display Source SQL File for a Given Module in a Given OSS Directory
>>DISPLAY USE OF MODULE_DIR '/usr/user1/all/modulestorage'
SOURCE 'CAT.ALL.MODULE1';
Module: CAT.ALL.MODULE1
Source Name: /E/NODE11/usr/user2/constraint1.sql
Display all Modules and Their Corresponding Source SQL Files in a Given OSS Directory
>>DISPLAY USE OF MODULE_DIR '/usr/user1/all/modulestorage' SOURCE;
Module: CAT.ALL.MODULE1
Source Name: /E/NODE11/usr/user2/constraint1.sql
Module: CAT.ALL.MODULE2
Source Name: /E/NODE11/usr/user2/constraint2.sql
Display Invalid Modules from a Given Directory (Along With Their Corresponding Source SQL
Files) for a Given Object
>>DISPLAY USE OF MODULE_DIR /usr/user1/module_storage INVALID MODULES FOR CAT.SCH.TABLE2;
Object: CAT.SCH.TABLE2
Module: CAT.SCH.MOD1
Source Name: /E/NODE11/modules/mod1.sql
Display all Modules From a Given directory (Along With Their Corresponding Source SQL Files)
for a Given Object
>>DISPLAY USE OF MODULE_DIR /usr/user1/module_storage ALL MODULES FOR CAT.SCH.TABLE2;
Object: CAT.SCH.TABLE2
Module: CAT.SCH.MOD123
Source Name: /E/NODE11/modules/mod123.sql
Displaying the Modules in a Local Directory
DISPLAY USE OF returns information about the modules in a local OSS directory when you specify
the directory with the MODULE_DIR clause.
DISPLAY USE OF MODULE_DIR '/usr/myapp' MODULE 'cat.sch.t24';
You must specify the fully qualified OSS directory path of a locally placed module. Otherwise, an
error occurs. The local directory is searched for modules matching the pattern you specified in the
MODULE_DIR clause. If modules that match the pattern are not found in the local directory, an
error is returned and searching does not extend beyond the local directory.
For more information, see the SQL/MX Reference Manual.
Grouping Applications and Modules to Run Multiple DISPLAY USE OF Operations
As the number of modules created on your system grows, the time required to run a single DISPLAY
USE OF operation on most or all of them might become excessive. To significantly reduce the time
required for this operation, you should group modules into subsets by using such criteria such as
applications, associations with tables, or any other grouping that is relevant to your environment.
Once you create the module subsets, you can run multiple DISPLAY USE OF operations on different
Managing Modules 225