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

File matching logic in easytrieve/sort


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

New User


Joined: 19 Feb 2013
Posts: 2
Location: india

PostPosted: Tue Feb 19, 2013 6:19 pm
Reply with quote

Hi,
I have two file FileA & FileB.
File A has 4 fields ( AAcct,Abatchno,Adate,Aamt) fileB has 4 fields (BAcct,Bbatchno,Bdate,Bamt).
Now,
Abatchno is PD
Adate is PD
Aamt is PD
--------------------
Abatchno is numeric
Adate is numeric
Aamt is numeric
----------------------------------
I want to match this files on (batch,date and amt), can we do it in single step?? icon_question.gif
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Feb 19, 2013 6:30 pm
Reply with quote

Yes.
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 792
Location: Pennsylvania

PostPosted: Tue Feb 19, 2013 6:33 pm
Reply with quote

Good job Bill, you are a quick study.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Feb 19, 2013 6:39 pm
Reply with quote

thats a direct consequence of any forum postulate

if <You> do not like Yes/No answers, do not ask Yes/No questions icon_cool.gif
Back to top
View user's profile Send private message
shab7002

New User


Joined: 19 Feb 2013
Posts: 2
Location: india

PostPosted: Tue Feb 19, 2013 9:09 pm
Reply with quote

Ok...now can someone please provide some example easy sort/easytrive to complete above matching logic.?????? no Y/N Please icon_cry.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Feb 19, 2013 9:13 pm
Reply with quote

Google is your friend. Googling easytrieve file match returned 9530 matches and THE VERY FIRST HIT contains sample code showing how to do file matching in Easytrieve.

Rather than spending 3 hours waiting for an answer on this forum, you could have resolved your own question in a matter in minutes.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Feb 19, 2013 9:15 pm
Reply with quote

There are many examples here for Sort, if you search the site for JOINKEYS. There will be examples in the manuals of whichever product you have.

In your Easytrieve Plus manual, look for Synchronised File processing. You can also find examples/disucssion in this part of the forum.
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: Fri Feb 22, 2013 11:20 am
Reply with quote

Hello and welcome to the forum,

In both the Sort and CA parts of the foru are examples of processes that do what you want.

Clone one and modify for your specifics. If there are questions or problems, someone will be here.
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 2
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
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