Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Is it possible to compare 2 files by Syncsort

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

New User


Joined: 09 May 2007
Posts: 27
Location: pune

PostPosted: Fri Jun 29, 2007 4:01 pm    Post subject: Is it possible to compare 2 files by Syncsort
Reply with quote

Hi actually i want to compare 2 files based on keys and get non matching in third file.and i want to mask few keys.
previously this was done by comparex and iam looking for an alternative so .Is this possible.

KEY=(1,2,C,A)
KEY=(3,4,C,A)
KEY=(7,16,C,A)
KEY=(23,16,C,A)
KEY=(39,15,C,A)
KEY=(54,6,C,A)
KEY=(60,7,C,A)
KEY=(81,1,C,A)
MASK=(61,19)
MASK=(82,END)
MAXDIFF=5
CONTINUE
PRINT=MISMATCH
COPYDIFF
this was the control card of comparex.i dont know much about syncsort but i have some material
and going through it and trying to accomplish what comaparex used to do.If at least i can get
non matching records based on keys thats enough for me.masking of fields no need.and i have synsort

SYNCSORT FOR Z/OS 1.2.1.0RI
(C) 2005 SYNCSORT INC.

I have tried the following JCL

Code:

//SYNCSORT EXEC PGM=SYNCTOOL
//TOOLMSG DD SYSOUT=*
//SSMSG DD SYSOUT=*
//IN DD DSN=inputfile1,DISP=SHR
// DD DSN=inputfile2,DISP=SHR
//OUT DD DSN=outputfile,DISP=(,CATLG),
// DCB=(RECFM=FB,LRECL=90,BLKSIZE=27000),
// SPACE=(27000,(15000,100),RLSE),UNIT=DISK
//TOOLIN DD *
SELECT FROM(IN) TO(OUT) ON(1,66,CH) ON(81,1,CH) NODUPS
/*


but still iam getting empty file and when i give alldups its giving all the records.
any suggestins
Back to top
View user's profile Send private message

dick scherrer

Site Director


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

PostPosted: Fri Jun 29, 2007 11:55 pm    Post subject:
Reply with quote

Hello,

I'd suggest you build 2 small test files and only use a single key (until you get the process working the way you want), then you can expand for the real data.

Also, i'd suggest you read the doc about JOINKEYS and JOIN. That should do what you want. This uses the SORT rather than Synctool.
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 Compare yesterday's date to the one o... migusd SYNCSORT 8 Fri Sep 22, 2017 11:35 pm
No new posts Comparing 2 Files using Current time arunsoods DFSORT/ICETOOL 5 Fri Sep 22, 2017 6:00 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 21 Sun Aug 27, 2017 10:35 pm
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us