Question: Mainframe I - Assignment 3 4 . Calculations a . Use WORKING - STORAGE variables for ALL output. i . Use 7 7 level variables
Mainframe I Assignment
Calculations
a Use WORKINGSTORAGE variables for ALL output.
i Use level variables in WORKINGSTORAGE to contain any values or text strings needed in any IF statements or calculations. These serve as named constants.
ii Do not use level variables for this purpose.
iii. In the Procedure Division use the named constants you created in the WorkingStorage 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 output as
This is accomplished by printing as a literal.
vi Earned Commission
vii. Paid Commission
Page of
Your Name, Assignment
SALES COMMISSION REPORT
tableNONAME,SALES,MIN,MAX,RATE,EARNED,PAID,BONUSNO BONUSJIM,$BONUS EARNED lines not shownPHIL,$BONUS NOT EARNED
SALES COMMISSION REPORT
tableNONAME,SALES,MIN,MAX,RATE,EARNED,PAID,BONUSNO BONUSWILLIAM,$BONUS NOT EARNED BOB,$BONUS NOT EARNED,
Page of
Mainframe I Assignment
Submission Requirements
Submit a zip file containing the solution files to the drop box in DC Connect.
Marking
marks for following the programming standards document
marks for report heading stored in workingstorage and output on first page only
marks for each page heading stored in workingstorage and output on each page
marks for detail lines per page
marks for column headings aligned over detail line columns
marks for columns in detail line having correct output format and valid data
marks for correct rounded calculations of calculated fields in detail line Earned Paid, BonusNo Bonus
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 marks for two correct totals, and six correct summary numbers, and three correct summary percentages
marks for correct program name
marks for correct output file name
marks for zip file containing
the ASCOMM cobol source and
the ASCOMM.OUT file and
the entire compileLKED JCL job summary and
the entire execute JCL job summary
Total marks
Page of
Mainframe I Assignment
Suggested Approach
a A cobol starter file ASTART 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 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 IFELSE 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
ProcessPages PrintHeadings ProcessLines
BonusGreaterthan BonusLessthan
BonusUnderMinimum BonusOverMaximum
PrintTotals
g ALL paragraphs should have a number as a prefix # at the beginning egHEADINGS 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 of
Mainframe I Assignment
Instructions
Copy COBOL.LOADLIB to you userid for use with Assignments, if needed
KCDCMAFDCOBOL.LOADLIB
as
KCYYYDCMAFDCOBOL.LOADLIB
Copy starter datasets and members for cobol source files, and JCL source files
a
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
