MVSFORUMS.com A Community of and for MVS Professionals
View previous topic :: View next topic
Author
Message
sateesh_gontla Beginner Joined: 23 Jan 2004 Posts: 40 Topics: 16 Location: Bangalore
Posted: Thu Dec 14, 2006 4:33 pm Post subject: Filter records on IF condition using SORT
Hi,
I have a file with 3500 bytes length data and I want the records to be filtered based on the following criteria :
If 2058:10 = 2069:10 ( 10 char from 2058 = 10 char from 2069) AND
1075:10 < 2058:10
then I need the entire record (1:3500) should come out.
Please advice using SORT.
Thanks.
Back to top
dz Beginner Joined: 02 Apr 2006 Posts: 26 Topics: 0
Posted: Thu Dec 14, 2006 4:43 pm Post subject:
Code:
SORT FIELDS=COPY
INCLUDE COND=((2058,10,EQ,2069,10),AND,(1075,10,LT,2058,10)),
FORMAT=CH
Back to top
sateesh_gontla Beginner Joined: 23 Jan 2004 Posts: 40 Topics: 16 Location: Bangalore
Posted: Thu Dec 14, 2006 5:26 pm Post subject:
Hi dz , THANKS MUCH !!!! _________________ Regards,
Sateesh
Back to top
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