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

EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2060


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

6840


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1775


What is the difference between structured cobol programming and object alternativelyiented cobol?

757


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

714






Write a program to explain size error.

679


Differentiate between structured cobol programming and object-oriented cobol programming.

669


What is amode(31)

726


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2124


Why occurs cannot be used in 01 level in COBOL?

721


What is static and dynamic call in cobol?

601


Difference between cobol and cobol-ii?

715


How do we get current date from system with century in COBOL?

809


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

719


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

780