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

SORTWK* Statements in Easytrieve


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
coxdavi

New User


Joined: 12 Mar 2009
Posts: 30
Location: usa

PostPosted: Thu Mar 19, 2009 11:02 pm
Reply with quote

Here are our defaults:

DYNALOC (WORKDA,6) (WORKDA,6) (WORKDA,6) (WORKDA,6)
* (SYSDA,4) * (SYSDA,4) * (SYSDA,4) * (SYSDA,4)

The question I have concerns the number of SORTWK* statements dynamically created and used through the use of the WORK parameter on the SORT statement in Easytrieve. My Easytrieve site default is set to WORK(3). I have the defaults above within DFSORT. Confusion sets in when I run an Easytrieve program sorting a small file using the WORK parm:

No WORK parm or WORK = 0 gives 4 SORTWK* allocations and DYNALLOC = 3.

WORK = 4 gives 6 SORTWK* allocations and DYNALLOC = 4.

WORK = 10 gives 15 SORTWK* allocations and DYNALLOC = 10.

Can someone please explain the second and third results ? I see the first.


Thanks,
Dave Cox
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: Thu Mar 19, 2009 11:12 pm
Reply with quote

I have no idea how Easytrieve interacts with DFSORT in terms of SORTWK allocations or DYNALLOC.

I might be able to figure it out from the DFSORT messages (ICExxxs) produced by the Easytrieve job.

If you want me to take a look, please add the following to the job:

//SORTDIAG DD DUMMY

and send me the complete JES and DFSORT messages offline (yaeger@us.ibm.com). Please put "DFSORT" somewhere in your Subject line to catch my attention.
Back to top
View user's profile Send private message
coxdavi

New User


Joined: 12 Mar 2009
Posts: 30
Location: usa

PostPosted: Fri Mar 20, 2009 1:22 am
Reply with quote

The answer from Frank is that since Easytrieve passes input records through an E15 exit, DFSORT does not know the number of records. DFSORT will allocate what is specified ( current specification is 4 ) and proactively add half of what is requested, giving total of 6.

Thanks Frank.

Dave Cox
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Mar 20, 2009 1:27 am
Reply with quote

Hello Dave and welcome to the forum,

Thanks for the follow-up icon_smile.gif

d
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Count the number of characters in a f... CA Products 1
No new posts File matching functionality in Easytr... DFSORT/ICETOOL 14
No new posts Relate COBOL statements to EGL statement All Other Mainframe Topics 0
No new posts Embeding DB2 sql statements in scirpt... DB2 7
Search our Forums:

Back to Top