1997 Altima idle/stalling problems

It could be oily soot inside the throttle body housing interfering with the operation ot the throttle plate that controls airflow into the engine. Take off the large hose between the air cleaner and the throttle plenum (housing) and look inside. If it is dirty use spray carb. cleaner and an old toothbrush and rags.