i declare a Table as OCCURS 2000 TIMES.If the input file
has more than 2000 records will the COBOL program fail?

Answer Posted / kingmanish

Its in our hands whether we want the program to abend in
case of data overflow or not.
If we specify SSRANGE = Y the program will abend when the
number to records go beyond 2000.

Otherwise for NO SSRANGE the program will not abend.
Though that data will be lost as we cannot reference it.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2096


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

704


What are the pertinent COBOL

2035


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1639


Write a program that uses move corresponding.

665






What is the difference between external and global variables in COBOL?

804


Write a program to enter and display the names of students in a class using the occurs clause.

642


What is redefines clause in COBOL?

841


What are all the divisions of a COBOL program?

659


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

671


How can you get the ksds file records into your cobol program?

636


How you can read the file from bottom?

653


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

812


What is cobol?

736


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

847