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

comparing two fields of the same record for a file


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

New User


Joined: 23 Aug 2006
Posts: 13

PostPosted: Thu Dec 17, 2009 9:04 pm
Reply with quote

Hi,

I want to check if the two fields of a record is same or not. If it is same, I would like to write such records to an output file.
Can we do it using ICETOOL/SORT. Pls suggest.

Example..

Input file:


f1 f2 f3 f4
111 AAABBB 111 TTTTT
345 FFFHHH 546 GGGG
414 FFFSSS 414 NNNN

Output file where field f1 is equal to f3:

111 AAABBB 111 TTTTT
414 FFFSSS 414 NNNN
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Dec 17, 2009 9:12 pm
Reply with quote

Code:
  SORT    FIELDS=COPY             
  INCLUDE COND=(pos,len,format,EQ,pos,len,format)
Back to top
View user's profile Send private message
sushidas
Warnings : 2

New User


Joined: 23 Aug 2006
Posts: 13

PostPosted: Thu Dec 17, 2009 9:18 pm
Reply with quote

thank you
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top