Step 1: Pull the Data from the MVS, use define fields as necessary and then hold the output as a FOCUS table with at least one index field. Keep in mind the 4 field limit, and 11 character limit for the index field names.
Step 2: pull the data from the SQL table(s), use define fields as necessary, and hold that as a focus table with EXACTLY the same index fields (name and format). Also for the field you actually want to compare the values of, use different field names i.e. MVS_CAR vs SQL_CAR.
Step 3: Use MATCH FILE Processing as described in ch 16 of the Creating Reports with WebFOCUS Language. I.E.
MATCH FILE MVS_DATA
SUM
MVS_FIELD1
MVS_FIELD2
BY SORT_FIELD1
RUN
MORE
FILE SQL_DATA
SUM
SQL_FIELD3
SQL_FIELD4
BY SORT_FIELD1
AFTER MATCH HOLD....
OLD-NOT-NEW will give you what is in MVS with no matching records in SQL
NEW-NOT-OLD give SQL records that are not in MVS
OLD-AND-NEW gives recods in BOTH, and because you named the fields with the source, you can actually compare the values.
Hope this helps a bit.
Robert F. Bowley Jr.
Owner
TaRa Solutions, LLC
In WebFOCUS since 2001