Create an output sequential file

Assignment Help Programming Languages
Reference no: EM131046132

Note: please follow those rule below

- Process this file must use with duplicate

- Must use the structure of program in the below. Do not use your own structure.

- I would like to see the structure in the program.

This program involves working with alternate indexes in indexed files.

You are given an alternate index indexed file DEALER.dat. The contents of this file are:

A0421   ABC Trucking

A0618   ABC Trucking

A0675   DEF Warehousing

A1330   DEF Warehousing

A1366   Zebra Cleaning

A1957   Zebra Cleaning

A2001   Zebra Cleaning

A2275   Pacific Welding

A2309   Pacific Welding

A2506   Jackson Machining

A2622   Jackson Machining

A2643   Rhodes Grinding

A2855   Rhodes Grinding

B1040   ABC Trucking

B1322   ABC Trucking

B2226   Yorba Accessories

B2291   Yorba Accdssories

B2402   Midwest Suppliers

B2407   Midwest Suppliers

B2630   Marsh Outfitters

C3192   Marsh Outfitters

C3198   ACF Industries

C3645   Zebra Cleaning

You are also given Alternate-Indexed-To-Sequential.cbl to enable you to see the contents of  DEALER.dat file.

The primary index (called Dealer-Number)  is the first 8 characters, e.g. "A0421", and the alternate index (called Dealer-Name)  is the next 21 characters,

e.g. "ABC Trucking".  The alternate index allows duplicates.

You will create an output sequential file: DEALER-OUT.prnthat will include the results of doing various operations on the DEALER.dat file. Each operation will require printing the result of the read operation as:  Dealer-Number followed by one space followed by Dealer-Name.

******************************************************************************

The operations you will perform in the exact order given are:

1. two sequential reads at the beginning of the file without referring to any data in the file.

2. a random read using the primary key starting at "B1040" followed by two sequential reads.

3. a random read using the alternate key starting with "Pacific Welding" followed by 4 sequential reads.

4. a read in the middle of the file at "B2402"

******************************************************************************

Your output file will look exactly like:

A0421    ABC Trucking

A0618    ABC Trucking

B1040    ABC Trucking

B1322    ABC Trucking

B2226    Yorba Accessories

A2275    Pacific Welding

A2309    Pacific Welding

A2643    Rhodes Grinding

A2855    Rhodes Grinding

B2291    Yorba Accdssories

B2402    Midwest Suppliers

The structure of your program must conform to the following:

1723_figure.png

Pass in your program, Prog06.cbl

Attachment:- Assignment.rar

Verified Expert

Coding was done using Visual Studio for COBOL. It is a COBOL program which reads two files and find the matching records in both file. If a record is present in both files, it will be written in output .txt file. If matching record for input record is not found in Master file, Tran record will be written to error.prn file. The solution also have screen shots, source code and Algorithm and program functions.

Reference no: EM131046132

Questions Cloud

Write a paper about your experience with app charity miles : Write a paper about your experience with app "charity Miles" why you like it? How many times you use it? How much weight did you lose? How do you feel about it? etc.
Why in practice this may not be the case : why in practice this may not be the case.
Why emphasis on primary prevention crucial in human services : Using the internet and other resources, research prevention programs in your community. Describe several of these programs and discuss the problems or disorders they are attempting to prevent. Do you think they are effective at this task? Why or w..
Determine if your site is connected to the m bone : If so, investigate and experiment with any M Bone tools, such as sdr, vat, and vic.
Create an output sequential file : CSDP241 Program 06 - Program involves working with alternate indexes in indexed files and this program involves working with alternate indexes in indexed files.
Show the shortest-path multicast trees for each source : Consider the example internet shown in Figure 4.59, in which sources D and E send packets to multicast group G, whose members are shaded in gray. Show the shortest-path multicast trees for each source
Firms undertake corporate social responsibility : The Web sites for Lenovo (China; www.lenovo .com), Nokia (Finland; www.nokia.com), and Banco do Brasil (Brazil; www.bb.com.br, click on ‘English') contain substantial information about how these firms undertake corporate social responsibility (CSR..
Paper - management and organisations in a global environment : Research Paper: Management and Organisations in a Global Environment. Management Summary: ideally one page but no more than two
What type of errors occurred in the research : What type of errors occurred in the research that may affect the outcome of the data? Is there any missing information that should be included? Discuss how you would approach the research and what type of questions you may ask.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd