Thanks for advice. I can check continuity and reference voltages after looking for obvious problems at PCM. Never worked from a flow chart though. I'll bet they make troubleshooting easier. Could you post them?The most probable cause of your starting and stalling would be the TPS code you got. Address that first, Your other code p0138 is a O2 sensor short to voltage which also is not a good thing, and the Cam position sensor code is saying PCM is getting no cam signal. So all of these three codes in junction could cause any of this.
If you want, post back if you want the flow charts for these three codes. I would not suggest throwing parts at this car yet, cuz when multiple code arrive at same time like this, it could be a harness issue, and no amount of new cam or TPS and O2 sensor will fix this. I suggest some pin testing first. You may just find a gad ground wire or a chewed harness, some irish green shyte in the PDC box etc.
Start checking connectors at the PCM to see if any wiring or connectors are in obvious disrepair.