COBOL SORT



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

Re: COBOL SORT

Postby BillyBoyo » Thu Jan 17, 2013 11:04 pm

It looks like someone messed up when deciding to change the licence.

Did you look at the manuals? Try google?
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 264 times

Re: Re: COBOL SORT

 

Re: COBOL SORT

Postby c62ap90 » Thu Jan 17, 2013 11:57 pm

Ditto what Dick said. Probably will work in the new/current days too.
c62ap90
 
Posts: 125
Joined: Thu Oct 11, 2012 10:24 pm
Has thanked: 1 time
Been thanked: 6 times

Re: COBOL SORT

Postby hvats83 » Mon Jan 21, 2013 4:11 pm

Please suggest me which algorithm cobol internal sort uses while sorting afile
hvats83
 
Posts: 18
Joined: Mon Dec 05, 2011 11:57 am
Has thanked: 1 time
Been thanked: 0 time

Re: COBOL SORT

Postby BillyBoyo » Mon Jan 21, 2013 5:34 pm

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...
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 264 times

Re: COBOL SORT

Postby hvats83 » Tue Jan 22, 2013 11:31 am

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.
hvats83
 
Posts: 18
Joined: Mon Dec 05, 2011 11:57 am
Has thanked: 1 time
Been thanked: 0 time

Re: COBOL SORT

Postby BillyBoyo » Tue Jan 22, 2013 12:56 pm

If you can reproduce that, then report it to Fujitsu. If you send them data, don't include anything that looks like genuine data.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 264 times

Previous

Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post