Load COBOL table while it has a limit.

All sort of Mainframes Interview Questions.
Post Reply
Vicky Malhotra
Registered Member
Posts: 11
Joined: Fri Jan 17, 2014 6:57 pm

Load COBOL table while it has a limit.

Post by Vicky Malhotra »

Hi,

Input file has billions of records that need to be processed. We want to load all the input file records in Cobol table. How this can be achieved when Cobol table has a limit?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1896
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Load COBOL table while it has a limit.

Post by Robert Sample »

How this can be achieved when Cobol table has a limit?
The simple answer is that what you want to do is simply not possible. The COBOL compiler has a limit on how much data a program may have, and that limit cannot be exceeded. Furthermore, z/OS itself has a limit on the amount of memory that an LPAR may contain, and for most systems billions of records will exceed the amount of memory available.

So you write your application to process one record at a time without attempting to load billions of records into memory -- just like all the millions of other applications around the world are doing right now.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “Interview Questions.”