COBOL SORT



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

COBOL SORT

Postby hvats83 » Wed Jan 16, 2013 12:04 pm

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

Re: COBOL SORT

Postby BillyBoyo » Wed Jan 16, 2013 12:46 pm

We'd need to see the sysout from the step, the Cobol code, and the setting of the FASTSRT compiler option.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: COBOL SORT

Postby hvats83 » Wed Jan 16, 2013 2:25 pm

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

Re: COBOL SORT

Postby BillyBoyo » Wed Jan 16, 2013 2:44 pm

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

Re: COBOL SORT

Postby c62ap90 » Wed Jan 16, 2013 5:59 pm

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
c62ap90
 
Posts: 125
Joined: Thu Oct 11, 2012 10:24 pm
Has thanked: 1 time
Been thanked: 7 times

Re: COBOL SORT

Postby BillyBoyo » Wed Jan 16, 2013 6:20 pm

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

Re: COBOL SORT

Postby dick scherrer » Wed Jan 16, 2013 8:56 pm

Hello,

If your organization is licensed to use Fujitsu Cobol, i suspect the best answer would be gotten from Fujitsu Cobol Support.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: COBOL SORT

Postby c62ap90 » Thu Jan 17, 2013 2:33 am

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!
c62ap90
 
Posts: 125
Joined: Thu Oct 11, 2012 10:24 pm
Has thanked: 1 time
Been thanked: 7 times

Re: COBOL SORT

Postby hvats83 » Thu Jan 17, 2013 9:08 pm

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

Re: COBOL SORT

Postby dick scherrer » Thu Jan 17, 2013 10:06 pm

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Next

Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post