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

  Explain multiprogrammed system available in user mode

CPU voltage and frequency or put it to sleep altogether. In a multiprogrammed system should this functionality be available in user mode or only accessible via system call. why or why not?

  The formula for the area of a circle is pir2 where r is the

the formula for the area of a circle is pir2 where r is the radius of the circle. write a program to compute the area

  Compute and display total number of votes received

Display the table with appropriate labels for the rows and columns. Compute and display the total number of votes received by each candidate and the percentage of the total votes cast.

  Program to display words in a list box sorted by number

Write a program to display the words in a list box sorted by the number of different vowels(a,e,i,o,u) in the word.

  Create program to produce a summary of amounts due

Create a program that will produce a summary of the amounts due for Pat's Auto Repair Shop. Display a splash screen first, then display the Job Information Form.

  Prompt user to enter two integer and read them from keyboard

Create a loop, and inside of it replace the larger integer with the difference between the larger integer and the smaller integer (if the integers are equal you may choose either one as the "larger")

  Design a modularized body mass index program

Design a modularized Body Mass Index (BMI) Program which will calculate the BMI of a team player. The formula to calculate the BMI is as follows:

  Modify the inventory program by adding a button to the gui

modify the inventory program by adding a button to the gui that allows the user to move to the first item the previous

  Write function which takes string and returns vowels

Write a function which takes as a parameter an string and returns vowels (a, e, i, o, u). The function prototype should look like:

  Advantages of turning the atm switches into lsr

Under these conditions, what are the advantages, if any, of turning the ATMswitches into LSRs, as opposed to using an overlay network?

  Store a list of items on a grocery list

write a program that uses a string array to store a list of items on a grocery list. The program should allow the user (via a menu) to add an item to the list, clear the list, and display the list.

  Create application to enter number of units sold

Quantity discounts are given according: create an application that allows the user to enter the number of units sold for each software package.

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