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 was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

1069


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1224


How arrays can be defined in COBOL?

819


What is cobol?

934


A table has two indexes defined. Which one will be used by the SEARCH?

1003


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

2865


What are all the divisions of a COBOL program?

872


What the difference is between continue and next sentence?

861


What is the difference between binary search and sequential search?

842


How you can read the file from bottom?

863


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

1027


What is a scope terminator give example?

820


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

1340


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

5070


What is the difference between Global and External Variables?

908