Frank, won't the RDW's be processed for each segment independently if the SORTIN DD has an override for RECFM=V or VB, bypassing the Spanned processing?
-----Original Message----- From: Frank Yaeger [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 16, 2007 12:24 PM To: [email protected] Subject: Re: How do I find the SPANNED indicator in a VB record? Peter Farley wrote on 05/16/2007 08:56:46 AM: > You could process the file as RECFM=VB with a JCL override and scan for byte > 3 NE x'00'. Sort should handle this nicely. > > Something like this (untested): > > SORT FIELDS=COPY > INCLUDE COND=(3,1,NE,X'00') Well, that would be: INCLUDE COND=(3,1,BI,NE,X'00') but it actually won't work because DFSORT "assembles" the spanned record into an unspanned record before it processes the INCLUDE statement. So the INCLUDE statement will see an RDW with the total length in the first and second bytes and X'00' in the third byte, rather than an SDW with the partial length in the first and second bytes and the segment descriptor in the third byte. This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. ---------------------------------------------------------------------- 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

