Page 1 of 2

COBOL SORT

PostPosted: Wed Jan 16, 2013 12:04 pm
by hvats83
We are using COBOL sort to sort a file which is above 2 GB in size.

The program is having input and output procedure also.The COBOL sort program is failing when executing return verb in program.

Please suggest me the reason for this issue and possible solution for this(apart from using external sort)

Re: COBOL SORT

PostPosted: Wed Jan 16, 2013 12:46 pm
by BillyBoyo
We'd need to see the sysout from the step, the Cobol code, and the setting of the FASTSRT compiler option.

Re: COBOL SORT

PostPosted: Wed Jan 16, 2013 2:25 pm
by hvats83
BillyBoyo wrote:We'd need to see the sysout from the step, the Cobol code, and the setting of the FASTSRT compiler option.


getting following error message in sysout-
013-01-15 02:25:21 JMP0601I-U [PID:00000780 TID:00000FBC] SORT OR MERGE STATEMENT ERROR. CODE=224. PGM=SRTSTKRC LINE=356.1

Re: COBOL SORT

PostPosted: Wed Jan 16, 2013 2:44 pm
by BillyBoyo
Well, it seems you have Fujitsu Cobol, which I don't imagine you are running on an IBM Mainframe.

Find the docs, find out what the message means. Google might suggest that it is a problem with filesize (a similar thing from 2009). Here is not the best place to ask.

Re: COBOL SORT

PostPosted: Wed Jan 16, 2013 5:59 pm
by c62ap90
FYI...According to this link - "It seems that Fujitsu compiler/runtime not properly supporting the sort functionality for huge files like more than 1 GB."
http://www.cobug.com/cobug/forums/fujitsu/55.shtml

Re: COBOL SORT

PostPosted: Wed Jan 16, 2013 6:20 pm
by BillyBoyo
Yes. Bear in mind, however, that it could well be a wrong diagnosis, and note that no-one provided an answer to that 2009 question.

Re: COBOL SORT

PostPosted: Wed Jan 16, 2013 8:56 pm
by dick scherrer
Hello,

If your organization is licensed to use Fujitsu Cobol, i suspect the best answer would be gotten from Fujitsu Cobol Support.

Re: COBOL SORT

PostPosted: Thu Jan 17, 2013 2:33 am
by c62ap90
As a test cut your file in half or better yet thirds and see if the COBOL SORT works with the smaller file.
If yes, then you know it's a file-size issue.
If no, then I have no idea.

Good luck!

Re: COBOL SORT

PostPosted: Thu Jan 17, 2013 9:08 pm
by hvats83
I tried to ask Fujitsu support but they replied back to purchase full Fujitsu license which used POWERBSORT and can handle files more than 2 GB.
When we removed full license from our server and used free runtime only, only those cobol sort programs are failing where major reschuffling is taking place while sorting(i.e when we are having alpha numeric and numeric data in a file)
If any one worked on Fujitsu cobol please let me know how to use BSAM option while using COBFSORT for sorting a file above 1 GB.

I know it is a Mainframe Forum, but hoping that might get help from some one.

Re: COBOL SORT

PostPosted: Thu Jan 17, 2013 10:06 pm
by dick scherrer
Hello,

In the "old" days when computers were much more limited, an issue like this was dealt with by splitting the input into multiple smaller inputs, then sorting the smaller sets and finally merging the results into a single larger file for whatever processing needed to be done.