Program MERG2

The purpose of Program Merg2 is to merge the daily journal entries in JOURNAL.DA with the sorted journal master file, JOURNAL.DX.

Before Program Merg2 is run, sort JOURNAL.DA by patient ID, then by date and time.

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

>>? RUN MERG2

Program Merg2 responds THE SCI PROGRAM MERG2 ENTER THREE FILE NAMES ?

where 1. INPUT file name 1 is normally JOURNAL.DS or the sorted journal master file 2. INPUT file name 2 is normally JOURNAL.DA or the daily journal file 3. OUTPUT file name 1 is a temporary file normally called TEMP and is the merged version of the 2 input files

After Program Merg2 is run, 1. delete JOURNAL.DS and rename the output file created in Merg2 to JOURNAL.DS 2. run Program JINDX to recreate the PATJINDX.DA file so that transaction records can be found on line with MOMS. 3. append JOURNAL.DA to JOURNAL.DN, the nonsorted journal master file.