× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: Coolest code you've ever written
  • From: "Nelson, Jim (RCIS)" <Jim.Nelson@xxxxxxxxxxxx>
  • Date: Fri, 17 Mar 2000 17:08:55 -0600


Does it count if I ran the project?  (Still find myself questioning my move
into management)  

Coolest thing we did was write our own two-way replication between the
AS/400 and SQLAnywhere.  The products available at the time each had 'show
stopper' problems, so we wrote it ourselves.

Field level replication on the way down, file-level back up to the AS/400. 

Journalled the files to be replicated and wrote a program to read the
journal, determine the action and create an SQL statement for the action.
Inserts, updates (only the fields that changed), deletes - the whole thing.


Had a second program bundle up the SQL by remote database and place it in a
shared folder.  The agents would dial in, retrieve the SQL package, open the
SQLAnywhere database and process the SQL statements.

On the way up we had a trigger on each table to be replicated that wrote out
the dataless key of the row to be sent.  Before the agent connected with the
AS/400, a program ran to gather the 'actual' data from the database.  Sent
that data back to the AS/400 and added/updated/deleted into our database.

Also wrote conflict 'detection'  (decided not to try and resolve, just
notify) at each end to alert the user that a record was changed both
centrally and remote.

The process is being used by over 1000 agents in the field today, and we
never have to think about it - just make sure the servers are running to
route the data.

We still look back on this as the way a project should be run.  Took the
time to really understand the problem,  came up with a solution that we
believed in, worked our tails off and got it done on time, working right out
of the gate.  

Wish they could all be that way...

This has been fun!

JN


+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.