Input Table - Master Database: Employee Transaction File: USERID - COBCASE.PS - TRANS Output Report File: Userid - Cobcase.Ps - Report
Input Table - Master Database: Employee Transaction File: USERID - COBCASE.PS - TRANS Output Report File: Userid - Cobcase.Ps - Report
1. All your programs related to case study should be available in the PDS named
USERID.NAME.COBCASE.PROGRAMS
2. The JCL for compilation of your program will be available in the PDS named
USERID.NAME.JCL.COMPILERS
7. The program should follow the standards provided at the end of this document.
SPECIFICATIONS
Implement the case study with COBOL PS dataset & DB2 DATABASE.
CASE STUDY – I
The following are the record entries for the above table. The record entries must be entered
through the COBOL program ( Not thru SPUFI or QMF).
2. Use the PS file as Input file which is given with the following details.
CASE STUDY – II
LOGIC :
Write a COBOL to read records from the above given PS dataset and verify the status,
If STATUS is given with ‘I’, insert that records as a new record into the database
and change the remarks as INSERTED Successfully in PS file, else if status is
with ‘I’ and record already exist, then change the remarks with DUPLICATE
record exist in PS file.
If STATUS is given with ‘U’, update the given details into the existing record and
change the remarks as UPDATED in PS file, else if the status is with ‘U’, and
record not exist, change the remarks as Record not found.
If STATUS is given with ‘D’, delete the record from database and change the
Remarks as DELETED successful, else if the status is with ‘D’ and record does not
exist , insert the record and change the remarks as INSERTED in PS file,
LOGIC
Write a COBOL to read records from the DB2 database based on the DEPT column and
generate a report as following:
Note :
*****************************************************************************************
MPHASIS TECHNOLOGIES
DATE : DD/MM/YYYY
*****************************************************************************************
*****************************************************************************************
******************************************************************************************