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
Why did you choose to work with ibm mainframe cobol programming?
What is the difference between perform … with test after and perform … with test before?
When is inspect verb is used in cobol?
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?
) How do u handle errors in BMS macro
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
i want a program using by if, evaluate , string, unstring, perform, occurs?
What are 77 levels used for?
What is the Purpose of Pointer in the string?
Write the code implementing the perform … varying.
how do you reference the printer file formats from cobol programs
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
What are various search techniques in cobol? Explain.
What guidelines should be followed to write a structured cobol prgm?