MITHARG
Would you like to react to this message? Create an account in a few clicks or log in to continue.

differnce in finding the length cobol II and cobol III

Go down

differnce in finding the length cobol II and cobol III Empty differnce in finding the length cobol II and cobol III

Post  kasthuri Sun Jan 27, 2013 5:52 pm

In cobol III i will find the length of the variable using the function

function lenght(variable-name)

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.
eg;
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).

Inspect varstr talling cnt for charecters.

pls give me the result if u people know it.

kasthuri

Posts : 212
Join date : 2013-01-27

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum