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

Want to Compare 2 files with Masking some fields.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Abhushan_s

New User


Joined: 28 Jul 2008
Posts: 34
Location: Ahmedabad

PostPosted: Wed Sep 10, 2008 4:29 pm
Reply with quote

Hi,

I wanted to compare 2 files using a SuperC job, but the condition is that one of the field must be masked.

Eg.,

File 1:

Field A | Field B | Field C
AAAAA | CCCCC | CCCCCC

File 2:

Field A | Field B | Field C
AAAAA | BBBBB | CCCCCC

The 'Field B' must be Masked, so that while comparing the File 1 and File 2, we get no difference.

Could anyone help me with the condition/Statement to be given for the job?
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Sep 10, 2008 6:03 pm
Reply with quote

Take a look at using CMPCOLM to select your fields
Code:

 CMPCOLM  1:2 7:8
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
Search our Forums:

Back to Top