Primary Input File: USERID - NAME.COBCASE - PS.INPUT Indexed File: Userid - Yourname.Vsam - Ksds Transaction File: USERID - NAME.COBCASE - PS.TRANS
Primary Input File: USERID - NAME.COBCASE - PS.INPUT Indexed File: Userid - Yourname.Vsam - Ksds Transaction File: USERID - NAME.COBCASE - PS.TRANS
1. All your programs related to case study should be available in the PDS named
USERID.NAME.COBCASE.PROGRAMS
Implement this case study with COBOL PS dataset & VSAM KSDS DATABASE.
SPECIFICATIONS
CASE STUDY – I
The following are the record entries for the above VSAM KSDS . The record entries from input
file must be entered through the COBOL PGM.
Use the PS file as Input file which is given with the following details.
CASE STUDY– II
LOGIC :
Write a COBOL program to READ records from the above given PS transaction dataset
and verify the status,
If STATUS is given with ‘I’, insert that records as a new record into the KSDS
database and display with INSERTED SUCCESSFULLY in SPOOL, else if status is
with ‘I’ and record already exist in KSDS, then display with DUPLICATE
RECORD EXIST in SPOOL.
If STATUS is given with ‘U’, update the given details into the existing KSDS
record and display RECORD UPDATED in SPOOL, else if the status is with ‘U’,
and record not exist, display RECORD NOT FOUND in SPOOL.
If STATUS is given with ‘D’, delete the record from KSDS database and display
DELETED SUCCESSFUL in SPOOL , else if the status is with ‘D’, and record not
exist, display RECORD NOT FOUND in SPOOL.
DUPLICATE
UPDATED
DELETED
INSERTED
DELETED
INSERTED
UPDATED