0% found this document useful (0 votes)
28 views2 pages

Match Record Logic

This document describes logic for matching records between a primary and secondary file. It reads a primary record and secondary record, compares fields between them, and either stores the matching field or processes the record depending on if the fields are equal, less than, or greater than each other. It then reads the next record and repeats the matching process until all records are processed.

Uploaded by

Maran Ganapathy
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views2 pages

Match Record Logic

This document describes logic for matching records between a primary and secondary file. It reads a primary record and secondary record, compares fields between them, and either stores the matching field or processes the record depending on if the fields are equal, less than, or greater than each other. It then reads the next record and repeats the matching process until all records are processed.

Uploaded by

Maran Ganapathy
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

RPG Matching Record Logic

Read Primary Record Read Secondary Record

Primary Field <= Secondary Field?

No

Store Secondary Matching Field

Yes

Store Primary Matching Field

Primary Field = Secondary Field?

Yes

B (pg 2)

No

No

Primary Field < Secondary Field?

Yes

Process Secondary Record

Process Primary Record

Read Next Secondary Record

Read Next Primary Record Page 1 of 2

RPG Matching Record Logic


Matching Record Condition Exists (MR is ON)
B

Process Primary Record

Read Next Primary Record

Does Primary Match?

Yes

No

Process Secondary Record

Yes

Read Next Secondary Record

Does Secondary Match?

No

A (pg 1) Page 2 of 2

You might also like