MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Filter records on IF condition using SORT

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
sateesh_gontla
Beginner


Joined: 23 Jan 2004
Posts: 40
Topics: 16
Location: Bangalore

PostPosted: Thu Dec 14, 2006 4:33 pm    Post subject: Filter records on IF condition using SORT Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger
dz
Beginner


Joined: 02 Apr 2006
Posts: 26
Topics: 0

PostPosted: Thu Dec 14, 2006 4:43 pm    Post subject: Reply with quote

Code:

  SORT FIELDS=COPY
  INCLUDE COND=((2058,10,EQ,2069,10),AND,(1075,10,LT,2058,10)),
    FORMAT=CH
Back to top
View user's profile Send private message
sateesh_gontla
Beginner


Joined: 23 Jan 2004
Posts: 40
Topics: 16
Location: Bangalore

PostPosted: Thu Dec 14, 2006 5:26 pm    Post subject: Reply with quote

Hi dz , THANKS MUCH !!!!
_________________
Regards,
Sateesh
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group