UNDERSTANDING DATA FILES

DATABASE FILES
DB2000 is intended to be used by individual members. It is not intended to be like a terminal, where all users use a common database. Because of the various ways individual databases can be customized by the user, each one will be somewhat different in ways that cater to the individual user's need. This is one of the program's strengths.

This brings about the problem of how to synchronize the data squadron wide. Some squadrons pass copies on a master database, but as explained above, this limits the flexibility of the system. A far nicer approach would be as follows:

  • Have a single person responsible for keeping the BDU fields maintained by the squadron up to date and making BDU uploads.
  • Allow each user to download roster updates from HQ for himself. Alternatively distribute the downloaded roster file itself to other users.
  • Utilize DB2000's built in features for updating purposes. For example if a user defined field should be on all users database, export it and pass the exported file for import by other users.
  • Make use of the merit mark options and data files. This will be discussed in other parts of this page.

Distributing a master database file can have nasty repercussions.  A true case is reported where the squadron procedure is to pass copies of a master database to other users. When the user responsible for merit marks copied it to his hard drive he overwrote his older version which had contained his MM recommendations. He was understandably upset and created new recommendations from scratch, which took a long time. If he had understood how the database and other data files work he could have easily avoided this.  But first, we see here why this method is bad. When updating is done internally in DB2000, a backup trail is established and older database versions can easily be restored. When you update by copying a database externally, this doesn't happen. In the example sighted, the easiest way to have restored the merit marks would have been to import the MM data file, which is automatically maintained by DB2000. This would have taken just a few seconds. The user obviously didn't know of its existence.

 

USER DEFINED FIELDS
One of the most powerful features of DB2000 is the ability to define fields for the user's needs. This feature cannot be supported if the squadron procedure is to try to have a common database.  If a user defined field is deemed desirable on a squadron wide basis, it can be exported.

The resulting file is in csv, comma separated value, format. It contains the field description and the field content. If this file is imported into another database, the program checks to see if the field already exists. if not, it creates the field and then fills it from the file content. The certificate numbers in the file are checked against those in the target database. If any of these is not resident then that record is not included.

 

 

MERIT MARK DATA FILES
In any DB2000 session, if changes are made to the merit mark recommendations, a file is automatically saved on exit from the program. This file is named "MMxxx.dat", where xxx is the squadron code. This is the current data file and can be passed to other members or used to restore a lost database. This file can be imported into another members copy of DB2000 without the need to provide the entire database. This is necessary so that users may keep their own database version which may contain information peculiar to that user.
To import a MM file, open the import dialog from the merit mark grid menu. The dialog has several options:
  • Import Options
    • Overwrite existing records. This will import all members in the file that match certificate numbers with members in the target database and will replace any MM recommendation that already exists.
    • Add new records only. This will add recommendations for matching records where there is no current recommendation.
    • Append to existing records.  This will attempt to add any new record to an existing one. Because there is a limit to the number of characters that can be used for a recommendation, if the result is too long, both recommendation will be shown in a dialog from where the user can edit to a final result.
  • Add unmatched records as affiliate
    • No. Default condition, don't add.
    • Optionally. This will show each unmatched record on a dialog and allow user to decide. Note: If the file is very large and there are many unmatched records this can get tedious.
    • Automatically. Use this only if sure of the result. Of course you can always delete them again, or not not save the database,

The import "Append to existing" option is very useful for doing cooperative merit marks. If squadron chairpersons each make their recommendations using DB2000 they can export there files and send them to the merit mark chairperson. He can then import the file and build a recommendation from several files where one may not have been sufficient for a valid recommendation.

TIP: My program "Boating Course Assistant", BCA, can make merit mark recommendations for each boating course for those staff members that were present or supported the course. These files can be emailed to the MM chairman for import to the master file. BCA is fully compatible with DB2000. Download from USPS web site.

In addition to DB2000 maintaining the current version of the MM recommendations, at any time the user can make a dated copy by exercising that option from the menu. This file is never again updated and contains the recommendations extent at the time it was made. This can be used as a cooperative input for the MM chairperson. It is especially useful to save the final version of the recommendations at years end, providing a useful starting point for next year. The name format of these files is "MMxxx_mmddyy.dat"