Question: Mainframe I - Assignment 3 4 . Calculations a . Use WORKING - STORAGE variables for ALL output. i . Use 7 7 level variables

Mainframe I - Assignment 3
4. Calculations
a. Use WORKING-STORAGE variables for ALL output.
i. Use 77 level variables in WORKING-STORAGE to contain any values or text strings needed in any IF statements or calculations. These serve as named constants.
ii. Do not use 01 level variables for this purpose.
iii. In the Procedure Division use the named constants you created in the Working-Storage section in place of the actual values, or text strings.
iv. There should be NO constant numbers or constant literals in the procedure division.
b. Use any COMPUTE, ADD, SUBTRACT, MULTIPLY, DIVIDE statements as needed
c. The program should process the data from the input file provided and calculate each salesperson's earned and paid commission.
d. Calculations are to be made as accurately as possible. Earned commission is to be rounded to the nearest dollar.
e. All printed values are to the nearest dollar (so use ROUNDED wisely).
f. For each salesperson print out the following:
i. Salesperson's No.
ii. Salesperson's Name
iii. Minimum Commission
iv. Maximum Commission
v. Commission Rate with a % sign
(When input data is 105 output as 10.5%.
This is accomplished by printing % as a literal.)
vi. Earned Commission
vii. Paid Commission
Page 4 of 9
Your Name, Assignment 3
SALES COMMISSION REPORT
\table[[NO.,NAME,SALES,MIN,MAX,RATE,EARNED,PAID,BONUS/NO BONUS],[111,JIM,444,000,50,000,100,000,10.5%,68,580,$******68,580,BONUS EARNED],[-- lines not shown--,,,,,,,,],[523,PHIL,205,002,999,2,000,19.5%,39,975,$******39,975,BONUS NOT EARNED]]
SALES COMMISSION REPORT
\table[[NO.,NAME,SALES,MIN,MAX,RATE,EARNED,PAID,BONUS/NO BONUS],[600,WILLIAM,99,003,75,950,8.5%,8,415,$********8,415,BONUS NOT EARNED],[818, BOB,2,10,900,49.5%,1,$**************10,BONUS NOT EARNED,]]
Page 9 of 9
Mainframe I - Assignment 3
Submission Requirements
Submit a zip file containing the solution files to the drop box in DC Connect.
Marking
25 marks for following the programming standards document
2 marks for report heading stored in working-storage and output on first page only
2 marks for each page heading stored in working-storage and output on each page
2 marks for 10 detail lines per page
10 marks for column headings aligned over detail line columns
10 marks for columns in detail line having correct output format and valid data
6 marks for correct rounded calculations of calculated fields in detail line (Earned, Paid, Bonus/No Bonus)
6 marks for blank line before and after report heading, blank line after each detail line, blank line after total line, three blank lines after summary groups 11 marks for two correct totals, and six correct summary numbers, and three correct summary percentages
2 marks for correct program name
2 marks for correct output file name
2 marks for zip file containing
the A3SCOMM cobol source and
the A3.SCOMM.OUT file and
the entire compile/LKED JCL job summary and
the entire execute JCL job summary
Total 8080 marks
Page 8 of 9
Mainframe I - Assignment 3
4. Suggested Approach
a. A cobol starter file A3START has been provided. This is not a complete program but has some of the basics that might be useful for this assignment. It is your choice whether to use it all, part of it, or ignore it altogether and write your own code.
b. In order to understand the logic of this program, I suggest you manually calculate the answers shown below.
c. When you do get output, I suggest that you check your calculations for salesman PHIL.
d. EDITING as follows:
i. Use Z and , for all except paid.
ii. Use $, and *(asterisk) for paid.
iii. Use a floating $ sign and, for the totals.
e. This assignment requires you to use IF/ELSE and PERFORM statements for processing the input data records.
f. There should be paragraphs for the topics listed below. You can add more paragraphs and you can use your own names for the paragraphs.
Main
Process-Pages / Print-Headings / Process-Lines
Bonus-Greater-than / Bonus-Less-than
Bonus-Under-Minimum / Bonus-Over-Maximum
Print-Totals
g. ALL paragraphs should have a number as a prefix # at the beginning (e.g.100-HEADINGS), and that number must be in ascending sequence as you go through the Procedure Division.
h. You must produce a structure chart to document your program.
Page 7 of 9
Mainframe I - Assignment 3
Instructions
Copy COBOL.LOADLIB to you userid for use with Assignments, if needed
KC02597.DCMAFD01.COBOL.LOADLIB
as
KC03YYY.DCMAFD01.COBOL.LOADLIB
Copy starter datasets and members for cobol source files, and JCL source files
a.
 Mainframe I - Assignment 3 4. Calculations a. Use WORKING-STORAGE variables

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!