Given the nesting of your IF statements, NO_DATA is not being raised - the conditions are not being met.
There are many examples of generic extractor, and explanations of how they work. I strongly suggest that you search for them. Thread locked on the grounds that this is basic extractor programming and should be able to be figured out with a little research.