meenakshi_forum Warnings : 1 Active User
Joined: 27 May 2008 Posts: 121 Location: India
|
|
|
|
Hi,
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))
TO CV-NAME-NEW
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.
Thanks |
|