David Betten wrote:

>It is FALSE.  All of the control statements are read at initialization and the 
include fields are evaluated during the input phase of the sort to select only 
the records that meet the criteria.

Thanks for your kind answer. Does that means that AFTER reading all the 
matching input records, that subset is THEN sorted?

The reason is I have to select a wide variety of different inputs to produce a 
subset and THEN sort that lot for reporting. My goal: to have as few bytes to 
sort after selecting what I need with one pass of the input dataset.

I wonder, if I do all my COPY and using INCLUDE statements and then do this 
two stage method:

COPY    FROM(INPUT) TO(TEMP1) USING(<dd with INCLUDE>) 
COPY    FROM(TEMP1) TO(TEMP2) USING(<dd with SORT>) 

Will this work better for large input datasets? 

>Have a nice day,

The same to you! ;-D

Groete / Greetings
Elardus Engelbrecht

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to