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

Match files A and B and write the matched records in a file


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
gprerna

New User


Joined: 21 Mar 2007
Posts: 38
Location: US

PostPosted: Wed Aug 01, 2007 6:25 am
Reply with quote

Hi,

I have a requirement where i have two input files FILE A and FILE B.

File A has:
A1
A2
A3
A4

File B has:

A1
A2

I want to match files A and B and write the matched records in one file and the non matched in other. I dont want to use IF MATCHED clause.
File B is a dynamic file, we can add more data into it (A3, A4...A11). It can have A1 - A11 in it.

Is it possible to find file B in file A using search in ezt?

Please reply!!

Thanks!
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Aug 01, 2007 7:27 am
Reply with quote

Hello,

Search may do what you want - for very snmall volumes.

Quote:
I dont want to use IF MATCHED clause.
Why not? What business reason is there to not use the built-in match function?

If you don't want to use match, you could always do this in cobol.
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
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
Search our Forums:

Back to Top