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 is the difference between perform … with test after and perform … with test before?
What the difference is between continue and next sentence?
How do you define a variable of comp-1 and comp-2?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
Differentiate between structured cobol programming and object-oriented cobol programming.
What is inspect in cobol ?
how to move the records from file to array table. give with code example
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
Write the code to count the sum of n natural numbers.
How do we get current date from system with century in COBOL?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
What is the difference between Global and External Variables?