(800) 219-8613 sales@ashwoodcomputer.com

Drumheller Trick

One of the primary developers of what became Prime Information was John Drumheller. I was employed at Prime computer and was introduced to Prime Information. In my work I came across a document that described a method of processing the data in a file using an efficient method that was attributed to John Drumheller. Typically in processing the data in a file you would select the records you wish to process, which requires reading every record in the file. Then you would process those selected records which required a second reading of the records. If your processing touched each record, you would have read each record in the file twice!

The “trick” is to only read the records once. To do this, create a subroutine that can be called from a dictionary record. The dictionary record should always return a false result, either 0 or “”. The subroutine should perform the processing required on the record. Then you can use the LIST command to list the file to be processed with the dictionary record that contains the subroutine. As the LIST command looks at each record, it calls the subroutine, processes the record and since it returns a false, it continues on. When the LIST command completes, it will have processed each record in the file reading the record only once. The result of the LIST command will generate little or no output.

The LIST command would look something like the following.

LIST filename WITH subroutine_dictionary_record

Ashwood Computer, Inc.

10671 Techwoods Circle Cincinnati, Ohio 45242

(800) 219-8613
(513) 563-2800

(513) 554-6412

Our Value – Added

Ashwood Computer, Inc. provides quality products and services that consistently meet our customer’s requirements, while continually searching for ways to improve them.

Our experienced project managers will help you successfully accomplish your goals on time and with optimum results! Our continuing success is attributed to the diverse backgrounds of our technical staff and our overall company drive for Total Customer Satisfaction!

ForeMost ERP is an impressive new ‘Hybrid’ Solution developed utilizing our mvTools.
ForeMost is dramatically improving our customers information systems and business operations. Moreover ForeMost provides our customers a significant competitive advantage!

© 2021 Ashwood Computer, Inc.
Ashwood Computer adheres to ISO 9001:2008 standards, a quality management system recognized around the world for quality design and production.