How does the data get into B, including the definition of the source field?
I think you are expecting it to be left-justified, but it is not.
When you UNSTRING, you are picking up a zero-length value (DELIMITED BY ALL SPACE is best) prior to the first space, so you get space, and space alone, in C. The LOW-VALUES was never going to work (not sure why you tried that).
Just MOVE B TO C and then do your INSPECT. For a four-byte field, INSPECT is a bit heavy, I'd just define appropriately test for one, two, three or four spaces, and MOVE ZERO to the place where the spaces have been identified as being.
More thinking, more typing (or more using of the editor) but less CPU day-in, day-out, for the next 15 years.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum