AQUADOG, I'm 99% sure we have the same problem. I've tried resetting mine by disconnecting the batteries and the clicking went away for a short time and my locks were all operational. Unfortunately, after a few cycles of the door switch or the key fob, it started acting up again.
I've been doing a bunch of reading and found some older threads that indicated the GEM was replaced with a Vehicle Security Module on 2002 models. From what I found, lots of guys have had to replace the VSM on 2002 models. I summarized what I learned here
Power Door Lock Problem - Clicking VSM/GEM and provided some links to the older threads.
I managed to locate the source of the clicking on my truck last night and it is coming from a module that is bolted to the firewall just above the transmission hump. In the threads I have found, this module is identified as the VSM. I'm going to try and replace mine this week, but from what I learned, the dealer has to reprogram it with data from the old unit.