Page 1 of 1

check the value of last byte in the variable

PostPosted: Fri Mar 18, 2011 6:01 pm
by Manju Venkat
Hi,

i want to check the last byte of the variable to the particular value. how can i do that? please anyone suggest me.
example:
01 ws-var pi x(10) value '12345'

i want to check whether last byte of ws-var is having the value 5 or not.

Re: check the value of last byte in the variable

PostPosted: Fri Mar 18, 2011 6:07 pm
by BillyBoyo
I think you can think about it a little bit more first, can't you? You've just had an outline of some code looking at characters in something longer.

Plus, we have no idea of the parameters of your problem, so if you still can't get it, think of a better way to ask the question with more detail.