Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

SYNCSORT :: Comparex utility to Syncsort conversion

$
0
0
Author: mistah kurtz
Subject: Comparex utility to Syncsort conversion
Posted: Fri Jul 22, 2016 1:53 pm (GMT 5.5)

Hi,

Currently I have a job which is using comparex utility for file comparison.

Code:
//STEP01  EXEC PGM=COMPAREX
//SYSUT1   DD  *                                     
AAA                                                 
BBB                                                 
CCC                                                 
DDD                                                 
EEE                                                 
//SYSUT2   DD  *                                     
AAA                                                 
BBB                                                 
XXX                                                 
DDD                                                 
YYY                                                 
//SYSUT3   DD  SYSOUT=*,DCB=(RECFM=FB,LRECL=3,BLKSIZE=0)
//SYSPRINT DD  SYSOUT=*                             
//SYSIN    DD  *                                     
   COPYDIFF                                         
   KEY=(1,3)                                         
   FIELD=(1,3)                                       
   MASK=(4,END)                                     
//*                                                 


The output from this job is:
Code:
XXX
DDD
YYY


I'm not able to understand how the DDD record is coming into output. I want to convert it to Syncsort. The version of Syncsort taht we have supports JOIN statements. Could you please help me to understand the comparex functionality.

PS: I have raised a request for the Comparex Manual, meanwhile I thought I will post here.

PPS: By mistake, I posted it in JCL section. Could you please move it into Syncsort section.

Thanks.


Viewing all articles
Browse latest Browse all 8500

Trending Articles