i have two files with a key in bytes 1-3 and data in bytes 5-9
my first input file is
000 $$$$$
001 aaaaa
002 ccccc
003 eeeee
004 ggggg
my second input file is
001 bbbbb
003 ddddd
004 fffff
005 hhhhh
i want the output like this
001 aaaaa bbbbb
003 eeeee ddddd
004 ggggg fffff
i have used the dfsort and joinkey like this
//xxxxxAB JOB NOTIFY=&SYSUID
//STEP1 EXEC PGM=SORT
//SORTIN DD DSN=xxxxx.MUTHU.PS,DISP=SHR
//SORTIN1 DD DSN=xxxxxx.MUTHU.PS1,DISP=SHR
//SORTOUT DD DSN=xxxxxx.MUTHU.PS2,DISP=OLD
//SYSOUT DD SYSOUT=*
//SYSIN DD *
JOINKEYS F1=SORTIN,FIELDS=(1,3,A),SORTED
JOINKEYS F2=SORTIN2,FIELDS=(1,3,A),SORTED
REFORMAT FIELDS=(F1:1,9,F2:5,5)
OPTION COPY
OUTFIL FNAMES=SORTOUT,BUILD=(1,9,X,10,5)
/*
i am getting the maxcc=16 error
my error msg is
ICE000I 1 - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R5 - 04:50 ON MON APR
JOINKEYS F1=SORTIN,FIELDS=(1,3,A),SORTED
$
ICE005A 0 STATEMENT DEFINER ERROR
JOINKEYS F2=SORTIN2,FIELDS=(1,3,A),SORTED
$
ICE005A 0 STATEMENT DEFINER ERROR
REFORMAT FIELDS=(F1:1,9,F2:5,5)
$
ICE005A 0 STATEMENT DEFINER ERROR
OPTION COPY
$
ICE005A 0 STATEMENT DEFINER ERROR
OUTFIL FNAMES=SORTOUT,BUILD=(1,9,X,10,5)
$
ICE005A 0 STATEMENT DEFINER ERROR
ICE010A 0 NO SORT OR MERGE CONTROL STATEMENT
ICE751I 0 C5-BASE C6-BASE E7-BASE
ICE052I 3 END OF DFSORT
please correct my error