Page 3 of 3

Re: Detail record sorting

PostPosted: Fri Feb 17, 2012 4:54 pm
by enrico-sorichetti
Nik!
to start with You have both an OPTION COPY and a SORT card
get rid of one of them.

Re: Detail record sorting

PostPosted: Fri Feb 17, 2012 5:10 pm
by Nik22Dec
enrico-sorichetti wrote:Nik!
to start with You have both an OPTION COPY and a SORT card
get rid of one of them.

Enrico,

Thanks so much for your reply. I removed the OPTION COPY & replaced it with OPTION DYNALLOC & the sort performed as expected by the TS.

If I do not put at least one of the OPTION commands, the job abends with U0189. I am wondering why, since, DYNALLOC & COPY perform two different functions & IMHO are definitely not interchangeable. I am trying to understand why is it mandatory to put at least one OPTION command in the card at my site.

Surprisingly, if you look at the manual at the location ftp://ftp.software.ibm.com/storage/dfsort/mvs/sorttrck.pdf page no. - 47, a similar SORT job runs without any OPTION statement.

Re: Detail record sorting

PostPosted: Fri Feb 17, 2012 5:16 pm
by enrico-sorichetti
in this case better ask Your support, never seen an OPTION statement mandatory
also ... it is not the OPTION card that conflicts wit the SORT card ...
it is the COPY parameter that is <wrong>, and <sort> tells You to take a decision COPY or SORT ? :D
for example OPTION EQUALS is accepted

Re: Detail record sorting

PostPosted: Sat Feb 18, 2012 12:24 am
by Frank Yaeger
Purva,

Kolusu showed you how to do what you want in the DFSORT Forum. Please post future DFSORT questions there.

Nik22dec,

U0189 corresponds to ICE189A. Here's the details for ICE189A:

http://publibz.boulder.ibm.com/cgi-bin/ ... 1744&CASE=

I would need to see the complete JES log including all messages you received for the job that got the U0189 in order to tell you why you're getting that message.

Re: Detail record sorting

PostPosted: Mon Feb 20, 2012 5:57 pm
by Nik22Dec
Frank Yaeger wrote:Nik22dec,

U0189 corresponds to ICE189A. Here's the details for ICE189A:

http://publibz.boulder.ibm.com/cgi-bin/ ... 1744&CASE=" onclick="window.open(this.href);return false;

I would need to see the complete JES log including all messages you received for the job that got the U0189 in order to tell you why you're getting that message.


Hi Frank,

Thanks so much for your reply. I revisited the spool & could see the below given error message.

ICE189A 0 BLOCKSET REQUIRED BUT COULD NOT BE USED - REASON CODE IS 65  
ICE052I 3 END OF DFSORT                                                


I remember we have had a discussion on this in one of the threads before also. Please refer - http://www.ibmmainframeforum.com/dfsort-icetool-icegener/topic586.html But, at that point of time my input file was having more than 10^8 records but, this time it was just 8 records of 10 bytes each. I am wondering as to how much input can be passed to the SORT utility at max without facing this issue. I believe it is the issue in the installation at my site.

Re: Detail record sorting

PostPosted: Tue Feb 21, 2012 12:57 am
by Frank Yaeger
The amount of data that can be sorted without any work files varies depending on several factors. I would recommend NEVER running without work files - there's no reason to.

I'd suggest adding the following to your job:

//DFSPARM  DD *
    OPTION DYNALLOC=(SYSDA,5)
/*


This will allow DFSORT to use dynamically allocated work data sets when needed. If you need more work data sets you can raise the 5 to a higher value (up to 255).

Re: Detail record sorting

PostPosted: Tue Feb 21, 2012 6:28 pm
by Nik22Dec
Thanks so much Frank. Now, I understand!!