ENABLE User's Guide
 INTEGRATING APPLICATIONS
 Avoiding Conflicting Box Names
 If boxes with the same name have different access modes, you may
 not be able to use the applications in the way that you expect.
 For example, suppose that you use the following commands to
 generate two applications:
 SET RECORD c-rec SET RECORD c-rec
 SET DATAFILE cfile SET DATAFILE cfile
 SET DELETE OFF
 SET UPDATE OFF
 SET INSERT OFF
 ADD BOX new-box ADD BOX new-box
 SET APPL PATHCOMFILE p4 SET APPL PATHCOMFILE p3
 SET APPL TREE (01 new-box) SET APPL TREE (01 new-box)
 ADD APPL new-appl2 ADD APPL new-appl1
 GENERATE new-appl2 GENERATE APPL new-appl1
 The SET SERVER ASSIGN commands for these applications would
 appear as follows:
 SET SERVER ASSIGN (new-box, cfile, INPUT) (for new-appl1)
 SET SERVER ASSIGN (new-box, cfile) (for new-appl2)
 If you enter both of these commands in the same PATHCOM command
 file and then establish a PATHWAY system with that command file,
 the General Server uses the access mode of the SET SERVER ASSIGN
 command that appears last in the command file. If the SET SERVER
 ASSIGN command for "new-app2" appears last, both applications
 will work as expected. If the SET SERVER ASSIGN command for
 "newappl1" appears last, "newappl2" will not work as expected;
 that is, you will not be able to use this application to delete,
 insert, or update records because the access mode (INPUT) with
 which the General Server will open the file will not permit these
 operations.
 If you plan to integrate your applications into a single PATHWAY
 system, you can avoid using conflicting box names by doing the
 following:
 1. Describe, name, and add the boxes necessary for an
 application.
 2. Add the application to the object table.
 3. Repeat steps 1 and 2 until you have named and added every
 application to be integrated.
 4. Use the GENERATE * command to generate all of the
 applications.
 11-10










