RICHINMINN
Programmer
- Dec 31, 2001
- 138
IBM Mainframe COBOL:
I've got a 300-character work area where I insert an alphanumeric string and then determine the beginning and ending non-space characters of the string so I can determine the number of characters in the string. I've got the 300-character work area indexed to speed the lookup of the first non-space character and the final non-space character, but once I've got the beginning and ending index values, how can I determine the overall length of the non-space portion of the character string? I can't use the index values to perform the math needed.
In other words, how do I convert an index value into a "normal" numeric value?
Rich (in Minn.)
I've got a 300-character work area where I insert an alphanumeric string and then determine the beginning and ending non-space characters of the string so I can determine the number of characters in the string. I've got the 300-character work area indexed to speed the lookup of the first non-space character and the final non-space character, but once I've got the beginning and ending index values, how can I determine the overall length of the non-space portion of the character string? I can't use the index values to perform the math needed.
In other words, how do I convert an index value into a "normal" numeric value?
Rich (in Minn.)