i declare a Table as OCCURS 2000 TIMES.If the input file
has more than 2000 records will the COBOL program fail?

Answers were Sorted based on User's Feedback



i declare a Table as OCCURS 2000 TIMES.If the input file has more than 2000 records will the COBOL..

Answer / madhan

yes. Both siva and vidya's answer is correct.

Is This Answer Correct ?    0 Yes 1 No

i declare a Table as OCCURS 2000 TIMES.If the input file has more than 2000 records will the COBOL..

Answer / narayana

yes ,it abends after 2001 record read with soc7.

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More COBOL Interview Questions

study the data discriptions and answer the questions given below i)01 ORDER RECORD 05 OUT-HEADER PIC X(50) 05 ITEM-COUNT PIC 99 05 OUT-ITEM PIC X(20) OCCURS 1 TO 20 DEPENDING ON ITEM-COUNT ii)01 NAME-AND-ADDRESS 05 N-AND-A-LINE OCCURES 5 05 LINE-LENGTH PIC P9 05 N-AND-A-CHAR PIC X OCCURS 1 TO 20 DEPENDING ON LINE-LENGTH iii)01 SALES-LIST 05 SALESMAN-COUNT PIC 99 05 SALES PIC 9(6) OCCURS 1 TO 100 DEPENDING ON SALESMAN-COUNT iv)01 ORDER-RECORD 05 NO-OF-BRANDS PIC 99 05 BRAND-PURCHASED OCCURS 1 TO 15 DEPENDING ON NO-OF-BRANDS which of the following is true? a.i) and iii) are valid b.i) and iv) are valid c.i) and iii) are not valid d.all are valid

4 Answers   TCS,


How many bytes S(8) comp field occupy and its maximum value?

0 Answers  


How do you define a variable of COMP-1? COMP-2?

3 Answers  


can internal sort be applied to sort ksds files?

1 Answers  


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

0 Answers  


is it possible to declare index in cobol program? if it is not why its tell me pls

3 Answers  


How do you reference the following file formats from cobol programs?

0 Answers  


I want ALL jcl ERROR cods

1 Answers  


how to crack cts interview apps? NOVEMBER 21 2010

2 Answers   CTS,


Which of the following characters is NOT valid in column 7? a. - b. \ c. * d. # e. $

4 Answers  


can u give result for the fallowing example... 05 a pic 9(2) 05 b redifines a pic x(2). move 'xy' to b. display a,b.

10 Answers   IBM,


Write the code to count the sum of n natural numbers.

0 Answers  


Categories