CCP COBOL ASSIGNMENT #6

OVERVIEW: The 6th COBOL programming assignment involves:

1)  Reading input records containing an employee number, employee name and pay rate.
2)  Reading another file for loading an indexed table.
3)  Reading an employee file (VSAM) to find the employee information necessary to do        calculations.
4)  Calling a sub program to get the English date (already written).
5)  Calling another sub program to do conversions of current salary to English so that it can be returned to the main program for output.

PURPOSE:  to gain experience writing COBOL programs involving sub-programming, table handling and character manipulation.

REQUIREMENTS:  to receive full credit for this assignment, you must deliver a correct assignment to instructor's hands or instructor's email address before 6:15PM of the due date -- Session 13.   (2 POINT BONUS if the completed assignment is received before midnight Sunday prior to the due date)

Submit the following for full credit.

1)  A listing of your COBOL programs (one main and one sub program, including COPY libraries.
2)  One job containing two compiles/links and one run step.
3)  Program/JCL documentation.
4)  Two reports (one listing all employees, salaries, and totals - the other producing simple checks)

PROGRAM 6 NARRATIVE

The employees of D.B.S. BUS LINES are drivers that get paid by how much they drive (distance times their rate per mile).  For example, a driver who makes four (4) Des Moines trips (there and back) and two (2) St. LOUIS trips might drive 1800 miles.  At a cost of 0.4200 cents per mile, he would get $756.00 in salary.

PROGRAM 6 Input Specifications
------------------------------------------------------------------------------------------------
For CSCJEB.CSC.EMP6D (32 bytes)

FIELD           COLUMNS  DATA CLASS
Employee Number  1-6     numeric
Employee Name   11-30    alphanumeric
Pay rate        31-32    numeric

EXAMPLE OF INPUT:
----+----1----+----2----+----3--
123456    DENVER,JOHN         07

------------------------------------------------------------------------------------------------
For CSCJEB.CSC.EMP6D.VS (60 BYTES)

FIELD               COLUMNS  DATA CLASS
Employee Number      1-6   numeric
Driver Information  21-60  occurs 8 times
    Destination     2-bytes
    Filler          1-byte
    Number of trips 2-bytes

EXAMPLE OF INPUT:
----+----1----+----2----+----3----+----4----+----5----+----6
123456              23 0231 0215 06

------------------------------------------------------------------------------------------------
For CSCJEB.CSC.DEST6D (25 bytes)

FIELD          COLUMNS  DATA CLASS
Destination #   1-2     numeric
Destination     3-22    alphanumeric
Mileage        23-25    numeric

EXAMPLE OF INPUT:
----+----1----+----2----+
23DESMOINES           355
31CLEVELAND           372
15ST.LOUIS            280

This file must be sorted before loading an indexed table.

COPY member (for rates) = CSCSMS.CSC.COBOL(RATES6D)
(a rate of 07 could correspond to .4155 cents per mile)

------------------------------------------------------------------------------------------------
 

------------------------------------------------------------------------------------------------
PROGRAM 6 OUTPUT SPECIFICATIONS.

For report #1

DESIGN YOUR OWN!! Each page must have English Date, page number and column headings.  The report must contain the following data for each employee:  name, employee number, number of trips, total mileage, rate and salary.

EXAMPLE OF OUTPUT FIELDS:

JOHN DENVER 123456 10 3134  $.4155 $1302.18

Include totals for number of drivers, total trips and total salaries paid.

------------------------------------------------------------------------------------------------
For report #2 (four checks per page)

   DATE: Month Day, Year

PAY TO THE ORDER OF  JOHN DENVER  $1,302.18
 

 ONE THOUSAND THREE HUNDRED TWO and 18 CENTS

 
     STUDENT BUS LINES
 

------------------------------------------------------------------------------------------------

Extra credit (+5 points) = in the first report list the destinations, number of trips, and mileage under each driver. In other words, if DENVER drives to 3 cities, then there should be 3 lines of data below the main line.

------------------------------------------------------------------------------------------------