Date:         Thu, 1 Jun 1995 21:28:42 EDT
Reply-To:     The NOMAD2 Discussion List
Sender:       The NOMAD2 Discussion List
From:         "William J. Ryan"
Subject:      Switching between shared and local DB

Stace:

Today I tested the following approach and it worked for me.

   ANYAPP NOMAD:
   /* make syntax scanner happy */
   sys cp link (to database ID...) ; access (address as mode);
   da anydb;

   /* do shared processing */
   call goshared;
   (shared db code...)

   /* do local processing */
   call golocal;
   (local db code...)


   GOSHARED NOMAD:
   trans;
   dbclear;
   da anydb owner anyowner;
   untrans;


   GOLOCAL NOMAD:
   trans;
   dbclear;
   sys cp link (to database ID...) ;
   access (address as mode);
   da anydb;
   untrans;


Sure, it costs you a few TRANS-mode statements, but none within a loop and
certainly no large statements.  What do you think about this approach?

Bill Ryan -- Information Works, Inc.
back to index