Requesting help in file processing

Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Requesting help in file processing

Postby vinoth124 » Tue Apr 13, 2010 5:32 pm

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)

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:
Input file 2 data:

In this scenerio the o/p file 1 should contains

and the o/p file 2 should contains

Thanks in advance for your help :)

Vinoth R
Posts: 3
Joined: Tue Apr 13, 2010 5:26 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Requesting help in file processing

Postby Robert Sample » Tue Apr 13, 2010 5:50 pm

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.
Robert Sample
Global moderator
Posts: 3686
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 274 times

Re: Requesting help in file processing

Postby Anuj Dhawan » Sun Apr 18, 2010 8:27 pm

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.
Anuj Dhawan
Posts: 273
Joined: Mon Feb 25, 2008 3:53 am
Location: Mumbai, India
Has thanked: 6 times
Been thanked: 4 times

Return to IBM Cobol


  • Related topics
    Last post