The first thing you will need to know is what two digit Personal Status code represents "Deceased". You can find that by doing the following:
Code: Select all
USE MECODES
BROW FOR FIELD="STATUS" AND UPPER(DESCRIPT)="DECEASED"
We'll call that code value ZZ for this example. The next step will be first to run a query to make sure you get the list of records you are expecting.
Code: Select all
USE ME
BROW FOR STATUS="ZZ" AND NOT EMPTY(DATE6) AND EMPTY(DATE7)
You should see the list of over 100 deceased people with no Out-date assigned that you were seeing before. If not, then something is off in the logic and we'll need you to post back with more details. That query says the Personal Status code is "Deceased" and there is a Deceased date assigned, but no Out-date assigned.
If the list of people in that query is as you expected, do the following:
Code: Select all
REPL ALL DATE7 WITH DATE6 FOR STATUS="ZZ" AND NOT EMPTY(DATE6) AND EMPTY(DATE7)
That simply takes the same list of people from the last query and copies Deceased date into Out-date.