MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SORT Problem

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
Sqlcode
Intermediate


Joined: 15 Dec 2006
Posts: 157
Topics: 38

PostPosted: Fri Aug 01, 2008 12:50 pm    Post subject: SORT Problem Reply with quote

I guess I have posted this question but I am really sorry I lost it halfways so posting it again.

I have an input file containing about 172 million records.

Now,My purpose is to split them into 20 different files based on key values and then I want those spilted files in to SORTED order.

When I use

OPTION COPY
OUTFIL INCLUDE=(1,15,CH,GE,C'ABC ',AND,
1,15,CH,LE,C'200209090909090'),FNAMES=OUT1
OUTFIL INCLUDE=(1,15,CH,GE,C'200209090909090',AND,
1,15,CH,LE,C'200309090909090'),FNAMES=OUT2
..
...
...
OUTFIL INCLUDE=(1,15,CH,GE,C'200709090909090',AND,
1,15,CH,LE,C'200809090909090'),FNAMES=OUT20

Job works fine but when I try to SORT this data using below mentioned card.

SORT FIELDS=(1,15,CH,A,16,2,FI,A,18,2,FI,A)
OUTFIL INCLUDE=(1,15,CH,GE,C'ABC ',AND,
1,15,CH,LE,C'200209090909090'),FNAMES=OUT1
OUTFIL INCLUDE=(1,15,CH,GE,C'200209090909090',AND,
1,15,CH,LE,C'200309090909090'),FNAMES=OUT2
..
...
...
OUTFIL INCLUDE=(1,15,CH,GE,C'200709090909090',AND,
1,15,CH,LE,C'200809090909090'),FNAMES=OUT20

The job abends saying RESOURCES WERE UNAVAILABLE FOR DYNAMIC ALLOCATION OF WORK DATASETS(064K).

Below is the exact error message.

Code:
ICE201I E RECORD TYPE IS F - DATA STARTS IN POSITION 1                         
ICE083A D RESOURCES WERE UNAVAILABLE FOR DYNAMIC ALLOCATION OF WORK DATA SETS  (064K)
ICE753I 0 FWK=(0,0) SWK=(0,0) TWK=(0,0) RWK=(0,0) TOTAL=(0,0) BLK=53216         
ICE751I 0 C5-K26318 C6-K90007 C7-K90000 C8-K23476 E4-K90007 C9-BASE   E5-K31980 E6-K18181
ICE750I 0 DC 0 TC 112958713400 CS DSVVV KSZ 23 VSZ 23                           
ICE752I 0 FSZ=179584600 RC  IGN=0 E  AVG=636 0  WSP=148346701 C  DYN=0 53216   
ICE052I 3 END OF DFSORT                                                         



FYI... We are using DFSORT V1R5.


Thanks,
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Fri Aug 01, 2008 2:31 pm    Post subject: Reply with quote

Sigh. Did you look up the ICE083A error message you received in the DFSORT Messages, Codes and Diagnosis Guide, or use LookAt to look it up?

Here's link to the ICE083A information:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CM20/2.2.82?SHELF=&DT=20060721170811&CASE=

Here's what it says about the 064K case:

Explanation: Critical.

If xxxx is 064K:
The work space needed for each work data set exceeds the limit of 64K tracks for a single, physical data set. Dynamic allocation could not be attempted

Programmer Response:

If xxxx is 064K:
Use the DYNALLOC=(,n) parameter to increase the maximum number of work data sets (n) such that the work space needed for each work data set does not exceed 64K tracks.

I don't know what your site has for the default number of dynamically allocated work data sets (you can find out by running a DEFAULTS job or looking at a successful sort run), but you need to override it with a larger number. I'd suggest you start with 32 work data sets and increase from there if you need to. You can do the override like this:

Code:

//DFSPARM DD *
  OPTION DYNALLOC=(,32)
/*


Note: The reason the copy job worked and the sort job failed is that a copy operation does not require work data sets whereas a sort operation does require work data sets.
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Sqlcode
Intermediate


Joined: 15 Dec 2006
Posts: 157
Topics: 38

PostPosted: Fri Aug 01, 2008 4:11 pm    Post subject: Reply with quote

Frank,

Thanks a lot.

The job ran with OPTION DYNALLOC=(,126).

I still didnt completely understood meaning of below mentioned statement.

If xxxx is 064K:
The work space needed for each work data set exceeds the limit of 64K tracks for a single, physical data set. Dynamic allocation could not be attempted


Thanks,
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Fri Aug 01, 2008 4:40 pm    Post subject: Reply with quote

Prior to z/OS 1.7, the system limit for the number of tracks for a single data set was 64K, so that's the most DFSORT could use. On z/OS 1.7 and above, the system allows the use of larger data sets, so DFSORT can and does use them.

Are you on z/OS 1.7 or below?
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group