Page 2 of 2

Re: Find Duplicate records using cobol internal sort

PostPosted: Fri Nov 20, 2009 10:04 am
by dick scherrer
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 :)

Re: Find Duplicate records using cobol internal sort

PostPosted: Fri Nov 20, 2009 11:49 am
by Jikesh Patel
Thanks Dick,

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

Thank you very much. :)

Re: Find Duplicate records using cobol internal sort

PostPosted: Sat Nov 21, 2009 2:39 am
by dick scherrer
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.

Re: Find Duplicate records using cobol internal sort

PostPosted: Mon Nov 23, 2009 1:13 pm
by Jikesh Patel
Thanks Dick,

Now I understood the correct use of internal sort.

Thank you dick once again. :)

Re: Find Duplicate records using cobol internal sort

PostPosted: Tue Nov 24, 2009 12:25 am
by dick scherrer
You're welcome :)

Someone will be here if there are additional questions,

d

Re: Find Duplicate records using cobol internal sort

PostPosted: Tue Nov 24, 2009 11:39 am
by Jikesh Patel
Hello,

Does anybody have any additional questions on how was the requirement, which I can help ?

Re: Find Duplicate records using cobol internal sort

PostPosted: Tue Jan 05, 2010 6:34 pm
by Anuj Dhawan
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...:)