Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Instructions 1 . Copy COBOL.LOADLIB to your userid for use with Assignments, if needed KC 0 2 5 9 7 . DCMAFD 0 1 .

Instructions
1. Copy COBOL.LOADLIB to your userid for use with Assignments,
if needed
KC02597.DCMAFD01.COBOL.LOADLIB
as
KC03YYY.DCMAFD01.COBOL.LOADLIB
2. Copy starter datasets and members
for cobol source files, and JCL source files
a. KC02597.DCMAFD01.A2.COBOL (A2START)
as
KC03YYY.DCMAFD01.A3.COBOL (A3SCOMM)
b. KC02597.DCMAFD01.A2.JCL (A2CL)
as
KC03YYY.DCMAFD01.A3.JCL (A3CL)
c. KC02597.DCMAFD01.A2.JCL (A2R)
as
KC03YYY.DCMAFD01.A3.JCL (A3R)
3. Create A3SCOMM program based on specifications below.
4. Use A3CL JCL to compile/LKED the program
5. Use A3R JCL to execute the program
6. Submit the appropriate files based on the submission requirements
Note: YYY is last three letters in your mainframe userid KC03YYY
Specifications
1. Input File
Use VISTA/ISPF to copy dataset
KC02597.DCMAFD01.A3.SCOMM.DATA
as
KC03YYY.DCMAFD01.A3.SCOMM.DATA
This is the data file that the program will read.
Each data record is 32 characters long with the following format.
This sample data does not exactly match the actual data in the file provided.
The following is intended to provide the column layout of the file:
NO. NAME SALES MIN. MAX. COMM.
COMM. COMM. %
COL. 1-34-1112-1718-2324-2930-32
110 Jim 444000300000600000105
127 Beth 056000500000809999205
531 Gerry 00799900060000070055
739 Cindy 003751004400006600195
2. Output File
This program will create a formatted output file called
KC03YYY.DCMAFD01.A3.SCOMM.OUT
3. Report Output Formatting
a. Report Header lines with a blank line, your name,
and a blank line on the first page only
b. Report title (SALES COMMISSION REPORT)
with a blank line, column headings, and underlines using hyphens for the column headings, and a blank line on every page
c. Detail lines with the fields in the input file layout
d. Total lines with a literal Totals
and totals for Earned and Paid Commission, and a blank line
e. Summary lines with a literal for each summary calculation
and the calculated number and blank lines between the various groups (see sample report)
f. You DO NOT have to match the number of spaces in the column headings.
g. You DO need to have column headings align with the detail line items.
h. Print 10 detail lines per page.
i. Print your name/date/time report heading and column headings on each page. You will need to use the after page option on your WRITE statement as outlined in class.
j. There should be one blank line after Your Name line, and after Sales Commission Report line.
k. There should be two blank lines after each group of summary lines. (see sample format)
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 salespersons 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
g. Use a combination of nested IF/ELSE and PERFORMs for the commission calculations:
i. Earned Commission Calculation:
If the Sales is <= $300,000 then Earned = Sales * Rate
If the Sales is > $300,000 then Earned= Sales * Rate + a bonus of 15.25% of the amount over $300,000
For example:
SAMMY gets 10.5% of his $55,000 in sales = earned of $5,775
BETH gets 20.5% of her $555,000 in sales = earned of $113,775+15.25% of (555,000300,000)=113,775.00+38,887.50= $152,662.50= $152,663 Rounded
ii. Paid Commission Calculation:
If the sales are more than $300,000 then PAID = EARNED unless Earned is > MAX.
o If Earned is > Max then PAID = MAX.
Note: they CAN earn less than their minimum and no check is made on it. Count and print out with a title the number of salespersons in the sales over $300,000 category who earn more than their maximum.
Check

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions

Question

What is the typical class size?

Answered: 1 week ago

Question

Recount the fundamental assumptions of the muted group theory

Answered: 1 week ago

Question

Compare and contrast monochronic and polychronic time orientations

Answered: 1 week ago

Question

Compare and contrast cultural preferences for privacy

Answered: 1 week ago