Dear Friend,
I am new to COBOL programming language. Could you please help me with the below mentioned requirement...
I have 2 input files with below mentioned format
Input file 1 :
**************
SNO X(03)
CODE X(09)
NAME X(68)
Input file 2 :
**************
CODE X(09)
CID X(09)
FILLER X(62)
My aim is to compair the Input file 1 with the input file 2 with CODE value. If the CODE in the input file 1 found the match code from the input file 2 then the o/p should be write in one file. If not found it needs to be write in the other file.
For example:
************
Input file 1 data:
******************
123aaaaaaaaa----------------------
456bbbbbbbbb----------------------
586rrrrrrrrr----------------------
Input file 2 data:
******************
aaaaaaaaa11111111111*************
ccccccccc11111111111*************
qqqqqqqqq11111111111*************
In this scenerio the o/p file 1 should contains
123aaaaaaaaa----------------------
and the o/p file 2 should contains
456bbbbbbbbb----------------------
586rrrrrrrrr----------------------
Thanks in advance for your help
Thanks,
Vinoth R
I am new to COBOL programming language. Could you please help me with the below mentioned requirement...
I have 2 input files with below mentioned format
Input file 1 :
**************
SNO X(03)
CODE X(09)
NAME X(68)
Input file 2 :
**************
CODE X(09)
CID X(09)
FILLER X(62)
My aim is to compair the Input file 1 with the input file 2 with CODE value. If the CODE in the input file 1 found the match code from the input file 2 then the o/p should be write in one file. If not found it needs to be write in the other file.
For example:
************
Input file 1 data:
******************
123aaaaaaaaa----------------------
456bbbbbbbbb----------------------
586rrrrrrrrr----------------------
Input file 2 data:
******************
aaaaaaaaa11111111111*************
ccccccccc11111111111*************
qqqqqqqqq11111111111*************
In this scenerio the o/p file 1 should contains
123aaaaaaaaa----------------------
and the o/p file 2 should contains
456bbbbbbbbb----------------------
586rrrrrrrrr----------------------
Thanks in advance for your help
Thanks,
Vinoth R