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
Answer / narayana
yes ,it abends after 2001 record read with soc7.
Is This Answer Correct ? | 0 Yes | 5 No |
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.
whats the disadvantage of search all over search?
Q:what is the difference between the variable length and fixed lenght.how it varies in the cobol.
How do you differentiate between cobol and cobol-ii?
what is search and searchall?what is the diffrence between them?give an best example?
can we read records in a file from botom to top. if possible how can we read
i have variable record in the 5th, i want to sort from 5th filed ? how ?
In my table having 3000 Records. How can I delete the 500th row? (we don't know what is data inside the table)
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.
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
for an INITIALIZE and what keyword allows for an override of the default.
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?