Page 2 of 2

Re: COBOL SORT

PostPosted: Thu Jan 17, 2013 11:04 pm
by BillyBoyo
It looks like someone messed up when deciding to change the licence.

Did you look at the manuals? Try google?

Re: COBOL SORT

PostPosted: Thu Jan 17, 2013 11:57 pm
by c62ap90
Ditto what Dick said. Probably will work in the new/current days too.

Re: COBOL SORT

PostPosted: Mon Jan 21, 2013 4:11 pm
by hvats83
Please suggest me which algorithm cobol internal sort uses while sorting afile

Re: COBOL SORT

PostPosted: Mon Jan 21, 2013 5:34 pm
by BillyBoyo
Implementation (of compiler) dependent.

On the Mainframe, Cobol just uses the installed Sort package.

I think you have to either buy the full licence, or ensure your files where you are using a Cobol SORT are not too big for it to work. This may include replacing the Cobol SORT by an external SORT, which I know you don't want to do :-)

If you try to do your own "sort" and attempt to get it relatively efficient, you will probably expend much more time doing that than by doing something else...

Re: COBOL SORT

PostPosted: Tue Jan 22, 2013 11:31 am
by hvats83
The sorting of file above 2 GB is running fine with free fujitsu run time when we make following changes to input file-

The input file(having 2.10 GB) is having following type of record-
00         20130114                                                               
[data]
99999999999                20130114  000000000013785024                            ...  trailer record in the file

The sorting order is -
1.first on (3:25) bytes - this filed can be alpha numeric
2. then on 1: 2 bytes-this field is numeric
3 then 26:25 bytes- this filed is alphanumeric

if we change trailer record from 99999999999 to ZZZZZZZZZZZ , then program ran fine and output file is sorted perfectly.I think this temporary fix and not the exact root cause.

Hope anyone may suggest further on this behaviour.

Re: COBOL SORT

PostPosted: Tue Jan 22, 2013 12:56 pm
by BillyBoyo
If you can reproduce that, then report it to Fujitsu. If you send them data, don't include anything that looks like genuine data.