If your pilot light goes out as soon as you light it, then it is most likely you require a new Thermo Couple. This is a safety device, and inexpensive and easy to fit. Normally you just buy a universal couple.However to save a second trip to the supplier take it off first and take it with you for replacement.
Gordon Corker
January 2006