You are on page 1of 6

Batch Project/Case Study:

CREDIT_CARD_INFORMATION:

COLUMN NAME COLUMN TYPE COMMENTS


CREDIT_CARD_NUMBER NUMERIC (16, 0) Primary key
CUSTOMER_NAME CHAR (40)
EXPIRY_DATE DATE Nullable
CREDIT_LIMIT NUMERIC (12, 2) Nullable
AVAILABLE_BALANCE NUMERIC (12, 2)

POSTED_TRANSACTIONS:

COLUMN NAME COLUMN TYPE COMMENTS


CREDIT_CARD_NUMBER NUMERIC (16, 0) Foreign key with previous table
TRANS_TIME_STAMP TIMESTAMP Primary key, NOT NULL with
default
VENDOR_NAME CHAR (20) Nullable
AMOUNT_SPENT NUMERIC (12, 2)

 Write a COBOL-DB2 program to read the Vsam file that contains the transactions made by the customer
and insert those transaction details to Posted_transactions table by checking the existence of the
customer.

 Write a COBOL-DB2 program,

a. To list the last 5 posted transactions for a particular card number.


b. Spend date should be dd/mm/yyyy format. This should be picked up from the
TRANS_TIME_STAMP column.
c. Amount to be displayed as Z,ZZZ,ZZZ,ZZ9.99.
d. One input field: credit card number.
e. All fields other than the credit card number are output fields to the output file

Note:
 Maintain coding standards like Level number paragraphs, Paragraphs for processing each function in the
program, Appropriate comments in each paragraph, No hardcoded values in the program, Error handling.
 Make use of NEXT STATEMENT, CONTINUE keywords appropriately.
 Use DISPLAY statement only for displaying error messages.

VSAM Input file layout (Copybook):


01 TRANS-REC.
05 CREDIT-CARD-NO PIC 9 (16).
05 TRANS-TIME PIC X (19).
05 VENDOR-NAME PIC X (20).
05 AMOUNT-SPENT PIC 9(12)v99.

Note: Create VSAM file using IDCAMS utility also in the same JCL have RENAME/BACK UP step, DELETE Cluster
step,REPRO step for loading data from PS file.

Output layout:

MMS Mini project on Credit Card Transaction System Date: DD/MM/YY


Time: HH:MM:SS

LAST 5 POSTED TRANSACTIONS

CARD NUMBER: 1234000000000001 NAME OF CARD OWNER: <customer name>

SPEND DATE VENDOR NAME AMOUNT


2018-06-23 Big Bazar 10,000.00
2018-06-24 Cinepolis 1,890.00
……
-----------------------------------------------------------------------------------------------------------
TOATL AMOUNT 11,890.00
TOTAL TRANSACTIONS COUNT: 05
----------------------------------------------------------------------------------------------------------

Note: If there is no existence of the customer display the proper statement in the spool.
Should code proper error handling and handling abends in the program.
Online Project/Case Study:

Policy Enrollment Project:


This project should enable us to create a policy and show the policyholder details.
Below are the screen and steps that we have to achieve as part of project
Step #1: Create a welcome screen as shown below.

Policy Enrollment Process

1. Existing Agent ID : <Existing agent ID>


2. Create new Agent ID: <Option 2 for creating a new agent ID>

Message: Enter details to continue

Step #2 : based on the input provided in first screen, We have to design below mentioned
screens
If user entered a valid agent ID, Then below are the list of screens should be enable for
the given agent.
Menu screen for valid agent ID:
Menu
1.New Policy Enrollment
2.Polciy Quote

Option:
Message: Enter the option to continue
Policy Enrollment Screen:
NEW POLICY ENROLLMENT

CLIENT ID : ________ POLICY NUMBER : __________


POLICY STATUS: _ PRODUCT TYPE : ___
PLAN : _____ PREMIUM AMOUNT: 000000000 . 00
PREMIUM MODE : _ (A/M/Q) PAYMENT MODE : _ (C/E)
POLICY TERM : 00 (IN YEARS) ISSUE DATE : MM / DD / YYYY
CASH VALUE : 000000000 . 00
AGENT NAME : _____________________________ AGENT ID : ______

MESSAGE : FILL THE DETAILS AND PRESS F1 TO GO TO NEXT PAGE


F1: NEXT PAGE F3: MAIN MENU F5: REFRESH

Next screen should be for capturing Nominee details:


Beneficiary Details
Beneficiary name:
Date of Birth : MM/DD/YYYY
Relationship :
F2: Complete F3:Policy Enrollment menu
Message: New Policy has been created successfully.
Policy Quote Screen:
Policy Details

POLICY NUMBER : __________ PRODUCT TYPE:

INSURED NAME : PLAN CODE :

POLICY STATUS : BENEFICIARY NAME :

INSURED DOB : AGENT NAME :

AGENT ID : CASH VALUE :

PREMIUM AMOUNT : PREMIUM MODE:

GRACE PERIOD: <120 days from Issue date>

GRACE DATE : ISSUE DATE :

PREMIUM DUE DATE : MATURITY DT :

MESSAGE : ENTER THE POLICY NUMBER AND PRESS F2


F2: PROCESS F3: MAIN MENU F5: REFRESH

Step #3:
New agent ID creation for any policy enrollment.

Agent ID creation Screen:


AGENT ENROLLMENT
*********************

AGENT ID : ________ SEX : _ (M/F)

NAME : ______________________________ MARITAL STATUS: _ (Y/N)

FATHER'S NAME: ______________________________ DATE OF BIRTH : MM / DD / YYYY

SSN NUMBER : 000 - 00 - 0000 PHONE NUMBER : __________

EMAIL : ______________________________ SSUE STATE : __

ADDRESS LINE1: ______________________________ CITY : __

ADDRESS LINE2: ______________________________ STATE : __

COUNTRY : __ ZIP : _____

MESSAGE : FILL THE DETAILS AND PRESS F2 TO ADD THE AGENT

F2: PROCESS F3: MAIN MENU F5: REFRESH

You might also like