View previous topic :: View next topic
|
Author |
Message |
jtwohig
New User
Joined: 24 Jul 2006 Posts: 18
|
|
|
|
HI,
Is there something comparable to LEN() length functionality in cobol ?
Thanks
J |
|
Back to top |
|
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
Do you mean the "C" Function STRLEN()
Dave |
|
Back to top |
|
|
chiranjeevi_mca
New User
Joined: 19 Feb 2006 Posts: 27
|
|
|
|
Hi,
There is a function called LENGTH OF data-item, but this results the value as the length declared in working storage section.
Ex:
working-storage declared as
01 a pic x(10)
move 'ABCD' to a
LENGH OF A - it gives the value of 10
if you want the output as 4 means you need to use the INSPECT. |
|
Back to top |
|
|
|