Frank Yaeger Sort Forum Moderator
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
|
Posted: Wed Oct 28, 2009 5:36 pm Post subject: |
|
|
An S9(9) COMP-3 field is a 5-byte PD field in DFSORT terms so the PD value 11345111 would look like this in hex:
011345111C
Is that what your value looks like? If not, then you need to show us in hex what it does look like.
If that is what your value looks like, then I think you are saying you are looking for 345 as the 4th-6th digits of the PD value. So you'd want to check if positions 17-18 have x345 (since your input is VB, the first 4 bytes have the RDW and the first data byte starts in position 5). You could use a DFSORT job like the following to get what you asked for:
Code: |
//S1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file (VB)
//SORTOUT DD DSN=... output file (VB)
//SYSIN DD *
OPTION COPY
OMIT COND=(17,2,BI,EQ,B'....001101000101')
/*
|
_________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort |
|