Produce a sequential maintenance program

Assignment Help COBOL Programming
Reference no: EM131018707

Homework, i need the program and screen shot in cobol visual studio.

Note: I need in cobol visual studio of the program and screen shot for program

Program:

For this assignment you will produce a sequential maintenance program using techniques similar to those in SS3. You are given two files, a "master" file with dealer information called Account-Master-File-In.txt with record specification of:

01  ACCOUNT-MASTER-RECORD.

05  OM-ACCOUNT-NUMBER              PIC X(05).

05  OM-ACCOUNT-NAME                PIC X(20).

05  OM-DATE-OF-LAST-DEPOSIT        PIC X(8).

05  OM-ACCOUNT-BALANCE             PIC S9(6)V99.

and a transaction file called Transaction-File-In.txt with record specification of:

01  MAINTENANCE-TRANSACTION-RECORD.

           05 MT-TRANSACTION-CODE             PIC X.

              88 MT-NEW-ACCOUNT               VALUE "1".

              88 MT-DEPOSIT                   VALUE "2".

              88 MT-WITHDRAWAL                VALUE "3".

              88 MT-NAME-CHANGE               VALUE "4".

              88 MT-DELETION                  VALUE "5".

           05 MT-ACCOUNT-NUMBER               PIC X(5).

           05 MT-DEPOSIT-AMOUNT               PIC 9(6)v99.

           05 MT-WITHDRAWAL-AMOUNT   

REDEFINES MT-DEPOSIT-AMOUNT

                                              PIC 9(6)V99.

           05 MT-DEPOSITOR-NAME-FOR-ADD       PIC X(20).

              88 MT-DEPOSITOR-NAME-MISSING    VALUE SPACES.

01  NAME-CHANGE-RECORD

REDEFINES MAINTENANCE-TRANSACTION-RECORD.

           05                                 PIC X(6).  

           05 MT-DEPOSITOR-NEW-NAME           PIC X(20).

           05       PIC X(8).

Your task is to apply the transactions in the transaction file Transaction-File-In.txt to produce a "new master" called Account-Master-File-Out.txt. Error transactions should be copied intact to Error-File.txt.

You should use the posted sequential maintenance cobol file discussed in the slides for all "control" needed. You should use the same name for switches and the control variables.

One change is required in the "control" part of the program in the slides. You should detect when multiple adds for the same record are attempted. Examination of the old master will reveal that this occurs for record 371.

With the exception of the multiple add detection, the only modification you should make is in the data manipulation part of the program.

Note that the Maintenance-Transaction-Record has "formats", i.e. the record can have multiple structures depending on the type of transaction record it is. There are 5 types of transactions:

adding an account (MT-TRANSACTION-CODE = 1)

deposit into an account (MT-TRANSACTION-CODE = 2)

withdrawal from an account (MT-TRANSACTION-CODE = 3)

changing the name on an account (MT-TRANSACTION-CODE = 4)

deleting an account (MT-TRANSACTION-CODE = 5)

All of the formats have MT-TRANSACTION-CODE and MT-ACCOUNT-NUMBER.

For deposits, the amount deposited is MT-DEPOSIT-AMOUNT.

The REDEFINES MT-DEPOSIT-AMOUNT redefines the storage space for MT-DEPOSIT-AMOUNT to be called MT-WITHDRAWAL-AMOUNT when the transaction is a withdrawal.

The MT-DEPOSITOR-FOR-ADD is present only for an add transaction, otherwise it is spaces (because the name for the account does not change for a deposit or withdrawal).

If the transaction is a name change, then the storage space beyond the transaction code and account number becomes the new name associated with an existing account. 8 spaces is added after the new name to make the record size 34 characters. This is indicated by NAME-CHANGE-RECORD which redefines the entire (34 characters) of the MAINTENANCE-TRANSACTION-RECORD.

Note that all formats end up being 34 characters total.

Note that in the context of the terminology used in the slides, deposits, withdrawals, and name changes are all "changes", adding an account is an "add", and deleting an account is a "delete".

Note also, that a withdrawal may end up causing an account to have a negative balance. This will cause strange characters to be printed for the last digit of the balance in the output file because the negative sign is stored in the same byte as the last digit.

Attachment:- Assignment.rar

Reference no: EM131018707

Questions Cloud

Tax adjusted trading profit : Mark's tax adjusted trading profit for the nine-month period ended 31 December 2012 is Kshs 200,700. Thisfigure is before taking account of capital allowances.
Discuss the relationship between physician and hospital : Discuss the relationship between physician and hospital (or other authority/agency) - What conclusions would you as a health administrator make about the relationship between physician and agency?
How often do you attend religious services or meetings : Evaluate each question, explaining in 2 sentences per question why each of these questions is problematic. In the course of criticizing each question, demonstrate your knowledge of several key features of Chinese religious culture. Be sure to give..
What is the income elasticity of demand for light bulbs : What is the income elasticity of demand for light bulbs? What does that tell you? (Hint: to find the income elasticity of demand for light bulbs, use the point elasticity formula but modify it to consider the relationship between income and quanti..
Produce a sequential maintenance program : You will produce a sequential maintenance program using techniques similar to those in SS3. You are given two files, a "master" file with dealer information called Account-Master-File-In.tx
Develop a f-test to test the significance of the r2 value : Develop a t-test to analyze the statistical significance of the estimated parameter (b3). List the null and alternative hypotheses b3. Is the estimated coefficient for the competitor's price found to be statistically significant? If found to be si..
How your organization can mitigate the short-term issues : If the organization does not have a code of ethics, explain why a code should be created and how it could assist them. Analyze the implications and risks of not having a sound code of conduct/ethics.
Write a paper from the given article describing soaps tone : Write a 4 page paper from the article above describing SOAPS TONE. A rhetorical analysis paper breaks a piece of non-fiction writing into parts and then explains how the parts work together.
Show impact of ice storm on market for kerosene heaters : It was reported that the price of kerosene heaters skyrocketed and the number purchased increased during this time. Using a supply and demand diagram, show the impact of the ice storm on the market for kerosene heaters.

Reviews

Write a Review

 

COBOL Programming Questions & Answers

  Prepare a cobol program

The purpose of this iLab assignment is to read data from a sequential file and produce a detail list of the records with simple formatted output (no headings and totals). In addition

  Janice colangelo heads the training centre of the large hr

janice colangelo heads the training centre of the large hr consulting firm emt consulting. the firm has three major

  Lenders bank program for cobol

Lenders bank program for cobol

  Calculate the size of monthly payment

Calculate the size of monthly payment necessary to repay a loan - Compute interest payment for each period and When computing the amortization table the program should report for the end of each year (12 month period) the total of payments, total of..

  Major difference between file and array

Major difference between file and array - how does record read from array and file

  Display a report of overall averages for each student

Your job is to display a report of the above information that includes overall averages for each student for exams 1 through 4, and class averages

  Cobol assignment

For this program you will use a file INFILE (listed here in numbers) that has information about students and their grades on 4 exams. The input file is shown below:

  E easy to process in a cobol variable-length record

Which would be easy to process in a COBOL variable-length record or fixed-length record?

  Review the description - flowchart and record layout

Review the description, flowchart, record layout, pseudocode, and hierarchy chart for the practice program. Review these items to gain a better understanding of the program's logic.

  A if you could pick a single source of cash for your

a. if you could pick a single source of cash for your business what would it be? why?nbspb. how can a business earn

  Print the number of personnel records processed

Compile and execute the program. If errors are reported, resolved them based on the messages reported by the compiler and by comparing the code.

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