Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
SORTWK* Statements in Easytrieve

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: SORTWK* Statements in Easytrieve
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 Moderator


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

PostPosted: Thu Mar 19, 2009 11:12 pm    Post subject:
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    Post subject: SORTWK* Statements in Easytrieve
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

Site Director


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

PostPosted: Fri Mar 20, 2009 1:27 am    Post subject: Reply to: SORTWK* Statements in Easytrieve
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts PLI %IF statements Pedro PL/I & Assembler 1 Tue Sep 19, 2017 12:06 am
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Easytrieve report shalem CA Products 4 Sun Feb 26, 2017 9:08 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us