IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Need help SORT


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rajkumarprajapati

New User


Joined: 20 Nov 2008
Posts: 9
Location: Delhi

PostPosted: Wed May 26, 2010 1:07 pm
Reply with quote

i have a i/p file with record length 3500 contains many records like
M1R5095828464001093212792002410733690772010-05-13-08.56.25

I want to copy those records which contains M1, N1 or N2 at columns 1-2


Thanks
Raj
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Wed May 26, 2010 1:13 pm
Reply with quote

Hello Raj,

Please use below sort card for this

Code:
SORT FIELDS=COPY                 
INCLUDE COND=(1,2,CH,EQ,C'M1',OR,
              1,2,CH,EQ,C'N1',OR,
              1,2,CH,EQ,C'N2')   
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed May 26, 2010 11:16 pm
Reply with quote

Alternatively, you can use these DFSORT statements:

Code:

   OPTION COPY
   INCLUDE COND=(1,2,SS,EQ,C'M1,N1,N2')
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
Search our Forums:

Back to Top