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
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
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?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
What is the difference between structured cobol programming and object alternativelyiented cobol?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
Write a program to explain size error.
Differentiate between structured cobol programming and object-oriented cobol programming.
What is amode(31)
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
Why occurs cannot be used in 01 level in COBOL?
What is static and dynamic call in cobol?
Difference between cobol and cobol-ii?
How do we get current date from system with century in COBOL?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?