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

SYNCSORT :: RE: Adding records from two files into one file

$
0
0
Author: shiitiizz
Posted: Mon Sep 19, 2016 9:05 pm (GMT 5.5)

Hi Rohit,

Thanks for your quick response

I did the below change and managed to get desired result

Code:

//SYSIN    DD *                                             
  JOINKEYS FILE=F1,FIELDS=(13,8,A),NOSEQCK                   
  JOINKEYS FILE=F2,FIELDS=(13,8,A),NOSEQCK                   
  REFORMAT FIELDS=(F1:1,12,F2:1,12)                         
  OPTION COPY                                               
  OUTFIL FNAMES=OUT,BUILD=(1,12,X,13,12)                     
/*                                                           


O/p as

Code:

000000000000 000000000000
000659564715 000660036583
004526422562 004580610248
000009425035 000009440828
011657232497 011636927832
002803326490 002799495964
000387610660 000388057654
038594371066 038590421443
004386175295 004388351088
002615414485 002617585666
000694934971 000691804474
000146457750 000148143819
000659179238 000641399729
000000001056 000000001050
000000000000 000000000000
000526384935 000525559433


Thanks for your time and attention icon_smile.gif
_________________
Regards,
Shitiz


Viewing all articles
Browse latest Browse all 9405

Trending Articles