I have a occurs for 100 times but it has executed 101 time
what could be the reason?

Answer Posted / niki

Change Compiler ioption NO SSrange to ssrange. But the
Default is NO SSRANGE.

IF U Use Compiler option SSrange, then whenever the
subscript exceeds its declared
number it will give a Eroor.
for example :
A variable is declared like this...

01 field1.
02 field2 pic x(10) occurs 10 times.
Oputput will be

then field2(1) ......field2(10) is allowed when it exceeds
it will give error
ex: field2(11) ----- erro msg will be displayed

Is This Answer Correct ?    14 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the various section in data division and briefly explain them.

702


State the various causes of s0c1, s0c5 and s0c7.

665


What are the access modes of START statement?

725


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

1964


) how do u code after getting data?

1584






When is inspect verb is used in cobol?

682


What are the different open modes available in cobol?

722


What is a SSRANGE and NOSSRANGE?

834


Mention the guidelines to write a structured cobol program?

624


what are decleratives in cobol?

1831


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

747


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

637


What is the problem of ordered sequential files access?

707


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

665


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1662