Professional Documents
Culture Documents
Documetdesign Specification1 Jignesh TRNG320
Documetdesign Specification1 Jignesh TRNG320
OBJECTIVE: To retrive a report of trains from a master file according to the train
information given in an input file.
REQUIREMENTS:
1) Create 2 input sequential files and load the data as specified.The names are:
(a) TRNG320.INPUT1.SEQFILE
(b) TRNG320.INPUT2.SEQFILE
IMPLEMENTATION:
(1) Load the input file TRNG320.INPUT1.SEQFILE using IDCAMS utility to the master
file TRNG320.VSAM.KSDS99 .
Input File 1 as PS
Input File 2 as VSAM
Output File as PS
(3) Defining the record structure of the Input File 1, Input File 2 and Output File
in FILE SECTION OF DATA DIVISION.
(4) Defining the file status of Input File 1, Input File 2 and Output File in
WORKING-STORAGE SECTION.
(a) Open the files Input File 1 , Input File 2 and Output File .
(b) Read the column TRAIN-NUMBER from input file 1 and move it to the key TRAIN-
NUMBER of input file 2.
(c) Read the key TRAIN-NUMBER in input file 2 and compare it with the exisiting
keys.If found write specific details in the output file else write RECORD NOT FOUND
along with the train number.
(d) Repeat steps (b) and (c) until last record of input file 1.
(e) Close all the opened files.
(a) TRNG320.COBOL.JCL which contains JCL programs for loading input file to VSAM
file and for compiling and running COBOL program.