Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

comparison of two fields with in the same file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
harish5002

New User


Joined: 21 Jul 2010
Posts: 23
Location: chennai

PostPosted: Fri Apr 20, 2012 3:22 pm    Post subject: comparison of two fields with in the same file
Reply with quote

Hi All,

I have the requirement that i need to compare two fields(columns) in the same file and write the unmatched(not equal) records to output file through JCL. Is it possible to do through JCL. I have searched in internet and i got comparing to files i did not get comparing two fields in the same file. Please anyone help me regarding this. Thanks in advance to all.

EX:

Input file:

A B
(108-109) (736-737)
11 12
11 11
10 10
10 10
10 10
10 10
10 10
10 10
10 10
10 11

OUTPUT FILE SHOULD BE;

D E
(108-109) (736-737)
11 12
10 11
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Fri Apr 20, 2012 3:29 pm    Post subject: Reply to: comparison of two fields with in the same file
Reply with quote

do not tag new questions to unrelated ongoing topics... icon_evil.gif
topic has been split
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7254

PostPosted: Fri Apr 20, 2012 3:35 pm    Post subject: Reply to: comparison of two fields with in the same file
Reply with quote

So I noticed, enrico... :-)

It is a simple answer, so I feel either I'm missing something or you, harish5002, should read up on the capabilities of INCLUDE/OMIT.

Code:
  OMIT COND=(108,2,CH,EQ,736,2,CH)
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Fri Apr 20, 2012 3:38 pm    Post subject: Reply to: comparison of two fields with in the same file
Reply with quote

if the ts had searched the forums, he would not have had the need to ask ...
searching with field compare same record in the dfsort section returned 47 hits icon_cool.gif
Back to top
View user's profile Send private message
harish5002

New User


Joined: 21 Jul 2010
Posts: 23
Location: chennai

PostPosted: Fri Apr 20, 2012 3:49 pm    Post subject: comparison of two fields with in the same file
Reply with quote

Sorry to post for existing tag line enrico-sorichetti.

Thanks Bill Woodger for your quick response. I tried and it worked. I am trying to write specific fields into output file by using outrec.

Any way thanks very much for your quick response.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 5 Sat Jan 21, 2017 4:02 am
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us