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 work files

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


Joined: 21 Jun 2006
Posts: 9
Topics: 4
Location: Bangalore

PostPosted: Tue Jul 04, 2006 3:38 am    Post subject: SORT work files Reply with quote

Hi,

Using Sort work files lets us process more records and also I believe it speeds up sorting.

I there any startndard to be followed while giving the size of Work files?
Also how do we decide how many work files to use for any sort?
Any input on this will be really helpful.

Thanks,
Deepa
Back to top
View user's profile Send private message
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Tue Jul 04, 2006 6:54 am    Post subject: Reply with quote

Dips,

Check these links :

http://mvsforums.com/helpboards/viewtopic.php?t=2091&highlight=sort+work

http://mvsforums.com/helpboards/viewtopic.php?t=5575&highlight=sort+work

http://mvsforums.com/helpboards/viewtopic.php?t=5309&highlight=work+datasets
Code:

//SORTWKdd DD Defines a work data set for a sort. Typically not needed, because DFSORT can allocate work data sets for a sort dynamically.

_________________
Shekar
Grow Technically
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: Tue Jul 04, 2006 9:35 am    Post subject: Reply with quote

See Appendix A of "z/OS DFSORT Application Progamming Guide". You can access it, along with all of the other DFSORT books, from:

http://www.ibm.com/servers/storage/support/software/sort/mvs/srtmpub.html
_________________
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
dips
Beginner


Joined: 21 Jun 2006
Posts: 9
Topics: 4
Location: Bangalore

PostPosted: Wed Jul 12, 2006 6:56 am    Post subject: Reply with quote

Hi,

This is the sort job i submitted without WORK files and the input has 8103330. And I got the message saying Sort capacity exceeded. And when I gave Work files and ran it again, it ran to success.
IF DFSORT does dynamic allocation of Work files, then why am I getting SB37 abend?

Code:

//STEP010  EXEC PGM=SORT
//SORTIN   DD DSN=infile,DISP=SHR
//SORTOUT  DD DSN=outfile,
//            DISP=(,CATLG),
//            UNIT=CART,
//            LABEL=RETPD=365,
//            VOL=(,,,20)
//SYSIN    DD  *
 sort fields=(1,10,ch,a)
/*
//SYSTSPRT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSOUT   DD SYSOUT=*
//SYSPRINT DD SYSOUT=*


Thanks,
Deepa
_________________
Thanks,
Deepa
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: Wed Jul 12, 2006 10:14 am    Post subject: Reply with quote

Deepa,

You haven't given me enough information to answer your question. It's possible that your site "disabled" dynamic allocation of work data sets, or doesn't have enough space for the needed work data sets, or it could be some other reason.

If you want me to take a look, please add the following to your job to get diagnostic messages:

//SORTDIAG DD DUMMY

rerun it, and send me the JES and //SYSOUT messages offline (yaeger@us.ibm.com). Please put "DFSORT" somewhere in your Subject line to catch my attention.
_________________
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