Posted: Thu Jun 23, 2005 9:44 am Post subject: Sort ASCII files
Hi,
I have a input file in ASCII format i want to filter the records on this condition INCLUDE COND=((1,9,PD,GE,050000000),AND,(1,9,PD,LE,120009999))
but its not working.. but when i give only one codition at a time some files are getting filtered. can any one please tell me how to filter a file with ASCII format.
That will show us what the values look like in hex so we can determine which numeric format would work for them. _________________ 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
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Tue Jun 28, 2005 10:09 am Post subject:
Bobi,
I don't think they are packed decimal numbers.A valid Packed decimal field will have the sign in the lowerbit. A 'c' or 'F' for a positive number and 'D' for a negative number.
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Tue Jun 28, 2005 10:52 am Post subject:
Your hex display shows that this is ASCII character data. You can do what you want using an INCLUDE statement like this:
Code:
INCLUDE COND=(1,9,BI,GE,X'303530303030303030',AND,
1,9,BI,LE,X'313230303039393939')
_________________ 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
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum