View previous topic :: View next topic
|
Author |
Message |
lemojames
New User
Joined: 15 May 2007 Posts: 3 Location: Pune
|
|
|
|
Can any one post a sample program which takes input from a sequential file of record length 2007 and eliminate records based on 20 given case numbers.
ie, every record needs to be checked with 20 case numbers and written to output file if it matches with any one of the case number. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
Back to top |
|
|
lemojames
New User
Joined: 15 May 2007 Posts: 3 Location: Pune
|
|
|
|
I had a look before posting... sorry to say that it doesn't help my requirement |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Are you searching for examples of EVALUATE verb ? or perhaps I didn't understand your question. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
OK, why not read the file and compare the record against the 20 case numbers, if a match, write and loop to read the next, if no match, just loop to read the next......
BTW, I would be available, for a small fee, to write the code for you.... |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
The suggested sample code can do exactly what you say you need to do.
Put the 20 case numbers in a file in case number sequence.
Sort the lrecl2007 file in case number sequence.
Customize the sample code to meet your requirement.
Run your match/merge creating the output you need.
That's all there is to it.
It would be a good idea to get familiar with the match/merge concept as you will need it repeatedly if you make a career of cobol programming. Your requirement is one that would make a good learning project.
If you use the sample code and have questions/problems, post a reply here and someone will be able to help. |
|
Back to top |
|
|
|