Program JINDX

The purpose of Program JINDX is to produce in the MOMS system the file PATINDX.DA from JOURNAL.DS. Before Program JINDX is run, Program Merg2 should be run so that the daily journal entries will be in JOURNAL.DS. Then PATINDX.DA will contain the starting record number in JOURNAL.DS where a particular patient name will be found. If this program has not been run a patient's journal entries cannot be found ONLINE in MOMS.

To execute Program Jindx, after the >>? prompt type

>>? RUN JINDX

Program JINDX responds THE SCI PROGRAM JOURNAL INDEX (JINDX) ENTER: 1. INPUT FILE NAME 2. OUTPUT FILE NAME

where INPUT FILE NAME is JOURNAL.DS OUTPUT FILE NAME is PATINDX.DA

PATINDX.DA is an index file into the journal master file. PATINDX.DA has a record length of 14. The format for PATINDX.DA is:

1 7 contains the Patient ID 8 7 contains the record number in JOURNAL.DS. Since there can be more than 32000 records, this number is in the F 0 format which places a period after the 6th number. When using the Chaprola Get command, get for a length of 6, not 7 because the period is in character position 7 in this field.

Program Jindx can be run at any time since it simply creates a new index file into Journal.DS. Be sure to run Program Merg2 before running Program Jindx so that all the journal entries will be in JOURNAL.DS. Likewise, if Program Merg2 is run be sure to immediately run Program Jindx so that all the journal entries will be available on line.