IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

usage of work files


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sushilchandran

New User


Joined: 21 Jun 2005
Posts: 22

PostPosted: Wed Aug 10, 2005 3:39 pm
Reply with quote

hi all,

please can anyone explain about the usage of workfiles.also while sorting in the jcl we are using exactly 7 work files.and the sort won't function if we didnt give 7.why is it so?
Back to top
View user's profile Send private message
shivashunmugam Muthu

Active User


Joined: 22 Jul 2005
Posts: 114
Location: Chennai

PostPosted: Wed Aug 10, 2005 4:16 pm
Reply with quote

Hi Sushil,

SortFiles are used to store records temporarily during the sorting process.

Who told only 7 files are used in Sort Work.............

From 1 to 100 sort work files can be allocated using the
SORTWKnn DD statement; the 'nn' suffix can be any number in the range 00 thru 99. SORTWKnn DD's are not used for a MERGE or a copy operation, or if the DYNALLOC parm is used. Each SORTWKnn MUST be on one unit & one volume.
Back to top
View user's profile Send private message
sushilchandran

New User


Joined: 21 Jun 2005
Posts: 22

PostPosted: Wed Aug 10, 2005 4:45 pm
Reply with quote

iam didnt mean that only 7 work files can be used k i want to know that wats the particularity in using exact 7 work files ini the jcl.please go thru the jcl once
Back to top
View user's profile Send private message
shivashunmugam Muthu

Active User


Joined: 22 Jul 2005
Posts: 114
Location: Chennai

PostPosted: Wed Aug 10, 2005 4:59 pm
Reply with quote

I cudnt understand what you are trying to communicate....Cud u please elaborate it with examples....& what error you got?
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed Aug 10, 2005 9:02 pm
Reply with quote

Quote:
From 1 to 100 sort work files can be allocated using the
SORTWKnn DD statement; the 'nn' suffix can be any number in the range 00 thru 99. SORTWKnn DD's are not used for a MERGE or a copy operation, or if the DYNALLOC parm is used. Each SORTWKnn MUST be on one unit & one volume.


Some inaccurate information here. For DFSORT, 1 to 255 work data sets can be used. For SORTWKdd DD statements, dd can be any characters that are valid in a JCL DD statement (e.g. AA, A1, 1X, 01, Z9, etc). If SORTWKdd DD statements are specified, work data sets will NOT be dynamically allocated unless the DYNAUTO=IGNWKDD installation option was specified.

Quote:
while sorting in the jcl we are using exactly 7 work files.and the sort won't function if we didnt give 7.why is it so?


The work data set space required depends on several variables including the input file size, the storage available, the use of memory object sorting, hipersorting, data space sorting, etc. 7 SORTWKdd DD data sets may be just enough work space to complete the sort in some cases, but this is highly dependent on the specifics of the job.

For more information on DFSORT's use of work data sets, see:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA10/A.0?DT=20050222160456
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
Search our Forums:

Back to Top