SQL/MX Programming Manual for Java

Program and Module Management
HP NonStop SQL/MX Programming Manual for Java523726-003
6-21
Grouping
Instructions
To group the modules of an application:
1. Run the SQLJ translator program and specify the -moduleGroup option on the
command line:
java sqlj.tools.Sqlj -d=mybin -dir=myjava
-moduleGroup=MYGROUP MyProg.sqlj
2. The SQL/MX compiler produces modules with unique group names:
/usr/tandem/sqlmx/USERMODULES/CAT.SCH.MYGROUP^MYPROGCTX1^^
/usr/tandem/sqlmx/USERMODULES/CAT.SCH.MYGROUP^MYPROGCTX2^^
To refer to all module files of a group, use an OSS command with the wild-card
character (*) for the catalog, schema, and module names.
To list all the module files of a group:
ls /usr/tandem/sqlmx/USERMODULES/*.*.MYGROUP^*
To copy all the module files of a group from one directory to another:
cp /E/DEV/usr/tandem/sqlmx/USERMODULES/*.*.MYGROUP^* \
/E/PROD/usr/tandem/sqlmx/USERMODULES/
To delete all the module files of a group:
rm /usr/tandem/sqlmx/USERMODULES/*.*.MYGROUP^*