differnce in finding the length cobol II and cobol III
Page 1 of 1
differnce in finding the length cobol II and cobol III
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.
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
Similar topics
» LRECL = Max. record length + 4 bytesfor Var. length rec.?
» Mismatch in QMF and COBOL results
» FORTRAN to Cobol conversion
» JCL to call COBOL program in SYSIN
» Calling program(Assembler/Cobol)
» Mismatch in QMF and COBOL results
» FORTRAN to Cobol conversion
» JCL to call COBOL program in SYSIN
» Calling program(Assembler/Cobol)
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|