Hi.
I have a cobol program in which a user can enter up to 5 different fields and the result will simply be the information from the table that matches input. The user can enter data in all 5 fields, or any combination/number of fields. For instance, I can enter in Name, Street, ZIP, city, state, or i can enter in just Name and state. Right now I just OR all of these conditions in one cursor and put default values into the fields that are left empty, but this does not give the desired result, it will still give all data.
My only other solution is to make an individual cursor for each possible combination, and then open it depending on whether or not the input variables but this seems like too much overhead.
Is there some way a cursor can detect which fields are empty and ignore them? How can I just do a search for Name and state leaving the other fields blank if I wanted to?