Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Inside Module 8 Working with Speed Demon Page n What is Speed Demon?2 n Speed Demon versus Suprtool3 n Speed Demon intrinsics6 n SPDEDBSCAN7 n SPDEDBINIT8.

Similar presentations


Presentation on theme: "1 Inside Module 8 Working with Speed Demon Page n What is Speed Demon?2 n Speed Demon versus Suprtool3 n Speed Demon intrinsics6 n SPDEDBSCAN7 n SPDEDBINIT8."— Presentation transcript:

1 1 Inside Module 8 Working with Speed Demon Page n What is Speed Demon?2 n Speed Demon versus Suprtool3 n Speed Demon intrinsics6 n SPDEDBSCAN7 n SPDEDBINIT8 n SPDEDBSHUT11

2 2 What is Speed Demon? Speed Demon n Reads records sequentially n Same as serial DBGET for user programs n Useful when you want to extract more than 50% of a dataset n Works best in 3G languages, such as COBOL, Pascal and FORTRAN

3 3 Comparing Speed Demon and Suprtool n Suprtool is a stand-alone utility program n Selects, sorts, and extracts records n Puts extracted records in an output file n Output is available to application programs for further processing n Speed Demon is an intrinsic library n Extracts records n Cannot select or sort records n Moves extracted records directly to the application program

4 4 Extracting records Application program SPEED DEMON Records calls extracts transferred to Report program

5 5 Versions of Speed Demon n Compatibility mode (CM) version on MPE V n Faster than DBGET n Slower than Suprtool n Uses a small amount of stack space n Native mode (NM) version on MPE/iX n Faster than DBGET n As fast as Suprtool

6 6 Speed Demon intrinsics n SPDEDBINIT selects dataset and field list n SPDEDBSCAN replaces calls to DBGET mode-2 n SPDEDBSHUT cleans up after dataset scan n SPDEEXPLAIN prints error messages

7 7 SPDEDBSCAN replaces DBGET mode-2 SPDEDBSCAN intrinsic n Has similar parameters to DBGET, but without NO SET, MODE or LIST options n Must call SPDEDBINIT before SET and LIST n Mode-2 serial access is always assumed

8 8 SPDEDBINIT selects dataset and field list SPDEDBINIT intrinsic n Mode-1 returns the entire record n Mode-2 allows you to specify a list of field names n Required before each SPDEDBSCAN n Scans only one dataset at a time n Requires database opened with DBOPEN command

9 9 SPDEDBINIT in mode-1 returns complete record n Call "SPDEDBINIT" using db-base db-set-d-sales db-mode-1 db-status-area spde-db-control db-dummy-arg. 01 spde-db-control. 05 spde-db-version pic s9(4) comp value spde-db-bufferpic s9(4) comp value zeroes. 05 spde-filler pic x(20) value spaces.

10 10 SPDEDBINIT in mode-2 returns specific fields n Speed Demon accepts all valid TurboIMAGE field lists except “*” list n Move "CUST-ACCOUNT,PRODUCT-NO, PRODUCT-PRICE;" to db-list-d-sales. n Call "SPDEDBINIT" using db-base db-set-d-sales db-mode-2 db-status-area spde-db-control db-list-d-sales.

11 11 SPDEDBSHUT cleans up after DBSCAN SPDEDBSHUT intrinsic n Mode-1 closes the database n Mode-2 closes the database and prints a performance report n If omitted, will cause next SPDEDBINIT to fail n Call "SPDEDBSHUT" using db-base db-set-d-sales db-mode-1 db-status-area spde-db-control db-dummy-arg.

12 12 Summary n Replacement for DBGET mode-2 n Intrinsics

13 13


Download ppt "1 Inside Module 8 Working with Speed Demon Page n What is Speed Demon?2 n Speed Demon versus Suprtool3 n Speed Demon intrinsics6 n SPDEDBSCAN7 n SPDEDBINIT8."

Similar presentations


Ads by Google