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

Extract only those records from a PS file which are having word 'TEXT' in the records using COBOL? The word TEXT is not present in a particular position in all the records.

2 Answers   RBS,


whats the disadvantage of search all over search?

4 Answers   Patni, TCS,


Q:what is the difference between the variable length and fixed lenght.how it varies in the cobol.

12 Answers   CTS, Wipro,


How do you differentiate between cobol and cobol-ii?

0 Answers  


what is search and searchall?what is the diffrence between them?give an best example?

3 Answers   BirlaSoft,






can we read records in a file from botom to top. if possible how can we read

12 Answers   ACS,


i have variable record in the 5th, i want to sort from 5th filed ? how ?

2 Answers   TCS,


In my table having 3000 Records. How can I delete the 500th row? (we don't know what is data inside the table)

3 Answers   Keane India Ltd,


There is a production file which has millions of records in it.The program that uses it ends up with an SOC7 abend.It is sure that the abend is due to some invalid data in the file.Is there any way to debugg the SOC7 abend with out giving displays? I need the record which is cause for the abend.

8 Answers   Danske, iGate,


Study the DATA DIVISION entries and the three PROCEDURE DIVISION entries given below: 01 END-OF-FILE-SWITCH PIC XXX. 88 NO-MORE-RECS VALUE "YES". 88 MORE-RECS VALUE "NO". (i) READ SAMPLE-FILE AT END MOVE "YES" TO NO-MORE-RECS. (ii) IF NO-MORE-RECS = "YES" GO TO LAST-PARA. (iii) IF NO-MORE-RECS GO TO LAST-PARA. Which are wrong? (a) (i) and (ii) (b) (ii) and (iii) (c) (i) and (iii) (d) all

5 Answers   TCS,


for an INITIALIZE and what keyword allows for an override of the default.

2 Answers  


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

0 Answers  


Categories