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
 

 

File comparision using Syncsort Joinkeys

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
cvijay784
Warnings : 1

New User


Joined: 18 Jun 2008
Posts: 54
Location: Colombo

PostPosted: Thu Jun 11, 2009 12:11 pm    Post subject: File comparision using Syncsort Joinkeys
Reply with quote

Hi,

My requirement is compare two files having same LRECL(1850) based on the key value using Syncsort. ( but in the two files the key positions are different)

In my final output, i want only the matched records from file1.

I tried using the below Joinkeys fuction but am getting the matched records from both the files.

JOINKEYS FILE=F1,FIELDS=(1,22,A,1166,1,A,1827,3,A)
JOINKEYS FILE=F2,FIELDS=(1,22,A,23,1,A,24,3,A)
REFORMAT FIELDS=(F1:1,1850)
SORT FIELDS=COPY

Could anybody tell me whether i need to include any condition to report only the matched records from file1.

Thanks in advance!!!
Back to top
View user's profile Send private message

Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Thu Jun 11, 2009 12:32 pm    Post subject:
Reply with quote

cvijay, Post topic in relevant forum to get answer faster...

Why it is in CICS forum?
Back to top
View user's profile Send private message
cvijay784
Warnings : 1

New User


Joined: 18 Jun 2008
Posts: 54
Location: Colombo

PostPosted: Thu Jun 11, 2009 12:57 pm    Post subject:
Reply with quote

Yes..its an oversite error while submiitting the query..

Any reply pls to the query..
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2180
Location: @my desk

PostPosted: Thu Jun 11, 2009 2:31 pm    Post subject:
Reply with quote

Quote:
I tried using the below Joinkeys fuction but am getting the matched records from both the files.
Your requirement is not clear. If it is a "match", it's quite natural that you have the key in both the files and the control cards shown by you give ONLY the MATCHED records. And since you use REFORMAT FIELDS=(F1:1,1850), you should be getting File-1 records which has a match in File-2. Is n't that you're trying to achieve ?

If not, just show a few sample input records from your input and the output records you expect from it(only relevant fields).
Back to top
View user's profile Send private message
r2k1984

New User


Joined: 21 Jun 2005
Posts: 69
Location: chennai

PostPosted: Thu Jun 11, 2009 7:09 pm    Post subject:
Reply with quote

you can try file aid..

in which you can get the records you need only from which file..

that would be simple
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Jun 11, 2009 7:12 pm    Post subject:
Reply with quote

r2k1984 wrote:
you can try file aid..
in which you can get the records you need only from which file..
that would be simple

But only if FileAid is installed at your site icon_rolleyes.gif
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2180
Location: @my desk

PostPosted: Thu Jun 11, 2009 8:11 pm    Post subject:
Reply with quote

r2k1984 wrote:
in which you can get the records you need only from which file..

that would be simple
With file-aid, can we do a two-file match and extract matching or non-matching records from either of the files, like SyncSort JOINKEYS?
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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 syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
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