write algo for cobol program whichuse three flat file to
extract some specific information 8 marks mainframe



write algo for cobol program whichuse three flat file to extract some specific information 8 marks..

Answer / Rishikant

Here is an example algorithm for a COBOL program that extracts specific information from three flat files:

1. Read the input control file to determine the sequence of operations (e.g., which files to read, what data to extract).
2. Open each of the three flat files (FILE1, FILE2, and FILE3) for reading using OPEN-IN statements.
3. Set appropriate variables for storing extracted data.
4. Process each record in FILE1 and read the required data from the other two files based on a common key or identifier. Store the combined information into the output format.
5. Write the processed records to an output file using WRITE-OUT statements.
6. Close each of the three files using CLOSE statements.
7. Stop when end-of-file is reached for any of the input files.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Programming Languages AllOther Interview Questions

if heap sort contains n elements, no of comparsions required are

2 Answers   Hughes,


How can we alter the data after creating a view

1 Answers  


A good website has the following conditions It should be interactive. It should contain at least 20 images. Title cannot be null and should contain at least 10 letters other than spaces and hyphen (-). The keywords should contain atleast three among the following list : "design", "Graphics", "lovely", "beautiful", "amazing" and "mesmerising" Write a method: boolean isGoodWebsite(boolean isInteractive, int numOfImages, String title,String keywords[]) isInteractive whether the site is interactive or not numOfImages Number of images on the website title Title of the website keywords Array of keywords in the website.

1 Answers  


What are the other ways to create an object with out calling new keyword in java?

2 Answers   HCL,


suppose we have ten members of a physical file but we want the output of last 5 members only.how to achieve that?

1 Answers   Bank Of America,


What is abstract Method i want the exact definition and is there any possibility to declare class as abstract without any abstract methods in that class?If it is possible then tell me why and how?

1 Answers  


WHAT IS NV RAM ?

3 Answers  


how MATLSB software suitable for electrical branch? which tools are useful??

1 Answers  


What is the GAC? What problem does it solve?

2 Answers  


3.Give the formula for determine the range of the data type?

1 Answers  


Outline the two important features of a terminating recursion. Any ideas?

1 Answers  


What is the difference b/w Object base and object oriented programming?

1 Answers  


Categories