Peter Hunkeler wrote on 09/21/2007 02:34:08 AM:
> I've been trying to extract and sort some records where
> a character form date field (Dyyyyddd) is found at two
> different positions in the input record, depending on some
> indicator in a fix position elsewhere.
>
> I thought I could
>  1.) copy the date field to the beginning of each record
>      using INREC IFTHEN OVERLAY and then
>  2.) INCLUDE only records within a specific date range by
>      referring to the field overlaid by 1.)
>
> I do need the date field at the beginning later on, so I
> need to do the INREC processing anyway.
>
> It seems that INCLUDE is processing the records before INREC
> is modifying them. (My INCLUDE just did not seem to select
> what I wanted it to).
>
> Does anyone know for sure the order of INCLUDE vs. INREC?
> The manual only says that INREC can modify records before they
> are sorted, merged or copied.

The order of processing for DFSORT functions is indicated in this
Figure in "z/OS DFSORT Application Programming Guide":

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA20/1.5.4?DT=20060615185603#FIGSTMTSEQ

As you can see, it shows that INCLUDE is processed before INREC.
However, you can use OUTFIL INCLUDE=(...) to do what you want since OUTFIL
is processed after INREC.

Frank Yaeger - DFSORT Development Team (IBM) - [EMAIL PROTECTED]
Specialties: PARSE, JFY, SQZ, ICETOOL, IFTHEN, OVERLAY, Symbols, Migration

 => DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort/

----------------------------------------------------------------------
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