Page 1 of 1

Requesting help in file processing

PostPosted: Tue Apr 13, 2010 5:32 pm
by vinoth124
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

Re: Requesting help in file processing

PostPosted: Tue Apr 13, 2010 5:50 pm
by Robert Sample
What have you coded so far and what are you having trouble with?

This is a HELP forum, not a DO-YOUR-CODE-FOR-YOU forum. We can provide assistance but typically unless you are willing to pay for our professional work product (since most of the responders are paid professionals, in asking for code you are asking for work product) -- and daily rates typically run around 1,000 U.S. dollars per day -- please don't expect to get code here.

Re: Requesting help in file processing

PostPosted: Sun Apr 18, 2010 8:27 pm
by Anuj Dhawan
I agree with Robert and the shear competition I've been to in the market lately, none of us would be ready to sell our work-product for sure. However, to help you to get you started with your code - Dick has posted a two-file-match program, long back, in the cobol part of the forum. It's there as "sticky" - you might start from there and can come back with what you've tried.