i declare a Table as OCCURS 2000 TIMES.If the input file
has more than 2000 records will the COBOL program fail?
Answer Posted / cobol will never die
I don't know how one can answer given the lack of
specificity of the question but.... Are we assuming all
records are loaded into the table and no check is made if
the index or subscript is > 2000? In other words are we
loading more than 2000 records data into the program? Can
we also assume this record has numeric definitions?
Given this scenario, and also given the executable code has
no knowledge of a symbolic copybook layout a S0C7 will not
occur as long as the data in the records being loaded is
wholesome. A S0C7 will occur, however, if any of any
numeric data item is corrupted by the overflow, then
referenced by any one of a dozen instructions.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What are the different types of condition in cobol and write their forms.
how do you reference the printer file formats from cobol programs
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
What is rmode(any) ?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
How many sections are there in data division in COBOL?
Write the code to count the sum of n natural numbers.
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
Difference between array and sub-script ?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
What is cobol?
What is the difference between comp and comp-3 usage?
What is the LINKAGE SECTION used in COBOL?
What type of SDLC u followed? Why?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc