Give it about 15 minutes with the battery disconnected and the headlight switch turned on.
The power for the Keep-Alive Memory in the EEC-IV computer has to be bled down through a load and it takes a few minutes.
Alternatively, you can clear the codes without clearing the entire memory by simply pulling the jumper on the VIP test connector while the PCM is outputting codes.
Steve