Warnings : 1
Joined: 27 May 2008
Suppose i have a tallying counter for leading spaces, we are tallying a field of 10 bytes and we want to remove all leading spaces.
I use a code
INSPECT CV-NAME TALLYING SUB FOR LEADING SPACES
MOVE CV-NAME((SUB + 1):(LN - SUB))
Note: Here, LN is length of CV-NAME which is 10 bytes.
Suppose SUB is of 10 bytes, then i am afraid, the prgram will go to 11th byte, please suggest how such cases can be handled, as CV-NAME field can have SPACES completely.