Answered step by step
Verified Expert Solution
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
Copy COBOL.LOADLIB to your 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 KCDCMAFDACOBOL ASTART
as
KCYYYDCMAFDACOBOL ASCOMM
b KCDCMAFDAJCL ACL
as
KCYYYDCMAFDAJCL ACL
c KCDCMAFDAJCL AR
as
KCYYYDCMAFDAJCL AR
Create ASCOMM program based on specifications below.
Use ACL JCL to compileLKED the program
Use AR JCL to execute the program
Submit the appropriate files based on the submission requirements
Note: YYY is last three letters in your mainframe userid KCYYY
Specifications
Input File
Use VISTAISPF to copy dataset
KCDCMAFDASCOMM.DATA
as
KCYYYDCMAFDASCOMM.DATA
This is the data file that the program will read.
Each data record is 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.
Jim
Beth
Gerry
Cindy
Output File
This program will create a formatted output file called
KCYYYDCMAFDASCOMM.OUT
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 detail lines per page.
i Print your namedatetime 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
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 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 output as
This is accomplished by printing as a literal.
vi Earned Commission
vii. Paid Commission
g Use a combination of nested IFELSE and PERFORMs for the commission calculations:
i Earned Commission Calculation:
If the Sales is $ then Earned Sales Rate
If the Sales is $ then Earned Sales Rate a bonus of of the amount over $
For example:
SAMMY gets of his $ in sales earned of $
BETH gets of her $ in sales earned of $ of $ $ Rounded
ii Paid Commission Calculation:
If the sales are more than $ 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 $ category who earn more than their maximum.
Check HA
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started