Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

TITLE: Train Information Report Generation System.

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

Specification Of two files are as follows:

Space=Tracks ; Primary=10 ; Secondary=20 ; Record Length=100 ; Record Format=FB ;


Block Size=1000

(2) Create a master KSDS VSAM file : TRNG320.VSAM.KSDS99


Specification: Space=Tracks ; Primary=10 ; Secondary=20 ; Record Size=(100,100) ;
Key=(6,0) ; Organization= indexed

(3) Create an output sequential file : TRNG320.OUTPUT.SEQFILE

Specification : Space=Tracks ; Primary=10 ; Secondary=20 ; Record Length=100 ;


Record Format=FB ; Block Size=1000

IMPLEMENTATION:

(1) Load the input file TRNG320.INPUT1.SEQFILE using IDCAMS utility to the master
file TRNG320.VSAM.KSDS99 .

(2) Describing about the files in the ENVIRONMENT DIVISION.

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.

(5) IN PROCEDURE DIVISION:

(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.

(6) LIBRARY DETAILS:

(a) TRNG320.COBOL.JCL which contains JCL programs for loading input file to VSAM
file and for compiling and running COBOL program.

(b) TRNG320.COBOL.SOURCE which contains source code of the COBOL program.

(c) TRNG320.COBOL.LOAD which contains load module of the COBOL program.

You might also like