Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

usage of work files

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: usage of work files
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    Post subject: Re: usage of work files
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    Post subject:
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    Post subject: Re: usage of work files
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 Moderator


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

PostPosted: Wed Aug 10, 2005 9:02 pm    Post subject:
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:

http://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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts )SEL and )ENDSEL usage cvnlynn TSO/ISPF 4 Thu Jun 15, 2017 1:15 am
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us