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
What is inspect in cobol ?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
i want a program using by if, evaluate , string, unstring, perform, occurs?
Difference between array and sub-script ?
In COBOL, what is the different between index and subscript?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
What is the difference between perform … with test after and perform … with test before?
Name the sections present in data division.
What is the difference between Global and External Variables?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
) how do u code after getting data?
What are 77 levels used for?
What are the different rules to perform a Search?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
What is the difference between PIC 9.99 and PIC9v99?