P1122 - Throttle Position Sensor
P1123 - Throttle Position Sensor - In range but higher than expected.
Sounds like the TPS is bad.
http://www.nicoclub.com/FSM/Altima/2002/ec.pdf
Pages: 250, 257, 455, 461, 463, 471
I would simply swap the sensor for one at a junk yard and see if thats the problem.
Also in doing this i'm not sure if you can use a TPS from different gens. Someone may know for sure, but would you could do is contact Nissan, ask how much a new TPS is and if the same part number applies to different model years.