The attached file nocensus.php will search for individuals in your gedcom that are missing one or more census records.
Put the file in your PGV directory, and run it by typing "nocensus.php" at the end of the URL in your web browser.
It knows about all the UK censuses; others can be added easily if you know the date/place.
To illustrate how it works, consider the England census of 2 April 1871. For each individual, it searches for the events either side of 2 April 1871. If either of these was in England (e.g. a birth in England in 1860 or a marriage in England 1877), it reports this census as missing.
This way it avoids reporting missing England censuses for individuals that were born/died in, say, Scotland.
It assumes a maximum age of 100 years, so someone born in 1750 without a death record may have a missing 1841 census but not a missing 1851 or later census.
Finally, it works on exact dates. If you've recorded a census as "1871" or "APR 1871", you will be told that you're missing a census fof "02 APR 1871". You should have entered the full details intially :-)
Report of missing UK CENS records
Add code for max(age)<100 years
Logged In: YES
user_id=1466942
Originator: YES
File Added: nocensus.php
Logged In: YES
user_id=1537714
Originator: NO
This is pretty cool. I would suggest figuring out a reasonably simple data file structure to use instead of hard-coding the search. Then admins could update the data file(s) to add other censuses and maybe even other types of records. Would be a useful item for a research assistant menu.
Logged In: YES
user_id=1466942
Originator: YES
My original version of this script actually searched the sources for a structure like this:
0@Sxxx@ SOUR
1 DATA
2 EVEN CENS
3 DATE 06 JUN 1841
3 PLAC England
This is the gedcom standard, but PGV has problems with the "1 DATA" field, so it was easier to rewrite it with a hardcoded list than explain to people how to edit raw gedcom records....