Find Duplicate records using cobol internal sort



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

Re: Find Duplicate records using cobol internal sort

Postby dick scherrer » Fri Nov 20, 2009 10:04 am

Hello,

Good start :)

The input in the code is 20 but the saample input data is longer?

When i code an internal sort, i identify the sort-key in a level-05 at the front of the sort record and the data to be sorted by the key in another level-05. Under each i name the individual fields.

I believe you want to release all of the records to the sort, there will be differences in the data portion.

The code initializes ws-sort-rec but this is not defined.

There's at least one typo that the compiler will catch if it isn't changed.

Suggest you make the small test copy of some data and have a go :)
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: Re: Find Duplicate records using cobol internal sort

 

Re: Find Duplicate records using cobol internal sort

Postby Jikesh Patel » Fri Nov 20, 2009 11:49 am

Thanks Dick,

Sure dick.
Just let me know is my approach for an internal sort is correct ?

Thank you very much. :)
Jikesh Patel
 
Posts: 23
Joined: Mon Apr 06, 2009 12:41 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Find Duplicate records using cobol internal sort

Postby dick scherrer » Sat Nov 21, 2009 2:39 am

Hello,

Just let me know is my approach for an internal sort is correct ?
Basically, yes. There is still some work to be done as the sort file does not contain all of the needed data definitions. Everything that is to be written into the outpout file has to be processed in the sort file.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: Find Duplicate records using cobol internal sort

Postby Jikesh Patel » Mon Nov 23, 2009 1:13 pm

Thanks Dick,

Now I understood the correct use of internal sort.

Thank you dick once again. :)
Jikesh Patel
 
Posts: 23
Joined: Mon Apr 06, 2009 12:41 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Find Duplicate records using cobol internal sort

Postby dick scherrer » Tue Nov 24, 2009 12:25 am

You're welcome :)

Someone will be here if there are additional questions,

d
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: Find Duplicate records using cobol internal sort

Postby Jikesh Patel » Tue Nov 24, 2009 11:39 am

Hello,

Does anybody have any additional questions on how was the requirement, which I can help ?
Jikesh Patel
 
Posts: 23
Joined: Mon Apr 06, 2009 12:41 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Find Duplicate records using cobol internal sort

Postby Anuj Dhawan » Tue Jan 05, 2010 6:34 pm

Jikesh Patel wrote:Does anybody have any additional questions on how was the requirement, which I can help ?
If you've got it work - then probably, no one...:)
Anuj
Anuj Dhawan
 
Posts: 274
Joined: Mon Feb 25, 2008 3:53 am
Location: Mumbai, India
Has thanked: 6 times
Been thanked: 4 times

Previous

Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post