Look here
http://sl-i.net/FORUM/showthread.php?18087-Subaru-Factory-Service-Manuals-(FSM)-Every-Model-USDM-EU
Go for the general market manual, '01, '02, '03 manuals will be similar. For wiring go for the diagram without obd(they mean obd2).
In the '02 manual pages 3540-3547 for the wiring diagram.
Pinouts pages 831-833
Fault codes 877-878
Check for fault codes before taking the engine out so you are not chasing an exsisting fault later. Had a crank angle sensor fail in between being in the donor and being started in my van.
Quote of the week
"Do I wish to send them to you again, nope, no interest can't be bothered really, to much hassle for little or no return."
[IMG]https://www.vw-mplate.com/mplate2-18600.png[/IMG]