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
A table has two indexes defined. Which one will be used by the SEARCH?
How do you define a variable of comp-1 and comp-2?
How do u write test cases?
What is static and dynamic call in cobol?
how do you reference the rrds file formats from cobol programs
What is the use of intialize verb?
Which Search verb is equivalent to PERFORM…VARYING?
how do you reference the variable unblock file formats from cobol programs
Whats the difference between search & search ALL?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
Why did you choose to work with ibm mainframe cobol programming?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
How do define dynamic array in cobol.
HOw can I get the negative sign while deduct high value from low value