In cobol III i will find the length of the variable using the function
but in cobol II its not allowed to use length function ( so i have to use inspect in that case it is returning the length of the variable which is declared.
01 varstr pic x(15) value 'hari'.
01 cnt pic 9(2).
if i am using the following syntax it is giving me the result 15 ,whether it will be possible to find the values length i.e 4 (as in length function).