Or maybe you can use a define somewhere or a compute;
HELP/I1=IF HVNL EQ 'S' THEN 1 ELSE 0 and use that check. Using this kind of assisting fields is useful in cases you have multiple IF factors and you need to figure out if all of them are true or one is. Also as sortfields if you need multiple subfoots or something like that.
In some cases I've noticed that comparing alpha fields causes some major headaches. Usually if you haven't used nodata commands and the database pops out a null value (usually after the DA has sworn there are no null values in that field).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.