Download User Manual

Transcript
Accessing Speed Demon
Accessing Speed Demon
Speed Demon is a set of routines, or intrinsics, that you call from your program. The
Speed Demon/V intrinsics are installed in the system SL. The Speed Demon/iX
intrinsics are installed in an XL. You access Speed Demon by calling these intrinsics,
just as you would the IMAGE intrinsics. There are three primary intrinsics:
SPDEDBINIT. Initializes the Speed Demon environment and decides what dataset
to read.
SPDEDBSCAN. Replaces calls to DBGET mode-2 and returns the same condition
word values (e.g., 0 for okay, 11 for end-of-file).
SPDEDBSHUT. Cleans up the Speed Demon environment. Before you can call
SPDEDBINIT for another dataset, you must call SPDEDBSHUT.
Original Program Using DBGET
Suppose that your program scans the d-sales dataset to produce a report of all d-sales
records with a sales-total greater than $10,000.00. Currently, your COBOL program
looks like this:
Suprtool 5.7 for MPE
Accessing Speed Demon • 435