Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are the different types of condition in cobol and write their forms.

1110


how do you reference the printer file formats from cobol programs

1211


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

1237


What is rmode(any) ?

1252


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

9093


How many sections are there in data division in COBOL?

1125


Write the code to count the sum of n natural numbers.

1202


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

1291


Difference between array and sub-script ?

1652


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

1184


What is cobol?

1236


What is the difference between comp and comp-3 usage?

1195


What is the LINKAGE SECTION used in COBOL?

1522


What type of SDLC u followed? Why?

1994


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

1220