I have two datasets and in one datasets the type of value is Numeric i.e. Zonal Decimal type and in another dataset the type of value in dataset is Packed Decimal.
I need to match off these values using join keys. I tried by converting into same type but getting the error. Below is the code:
//SORTJNF1 DD DSN=MY.INPUT.SE1,DISP=SHR
//SORTJNF2 DD DSN=MY.INPUT.SE2,DISP=SHR
//SORTMSG DD SYSOUT=*
//SORTOUT DD DSN=MY.OUTPUT.SE,DISP=SHR
//SYSWK01 DD UNIT=SYSDA,SPACE=(CYL,(50,50),RLSE)
//SYSWK02 DD UNIT=SYSDA,SPACE=(CYL,(50,50),RLSE)
//SYSIN DD *
000034 JOINKEYS FILES=F1,FIELDS=(6,4,PD,A),TYPE=V
000035 JOINKEYS FILES=F2,FIELDS=(7,4,PD,A)
000036 REFORMAT FIELDS=(F1:1,90)
000037 OPTION COPY
000038 //JNF2CNTL DD *
000039 INREC BUILD=(7,7,ZD,TO=PD)
000040 /*
Error:
WER146B 64K BYTES OF EMERGENCY SPACE ALLOCATED
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
WER486A ERROR IN JNF2 PROCESSING
WER482I JNF1 STATISTICS
WER483B 32,780K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
WER483B 0 BYTES RESERVE REQUESTED, 988K BYTES USED
WER108I SORTJNF1 : RECFM=VB ; LRECL= 4684; BLKSIZE= 27998
WER073I SORTJNF1 : DSNAME=PINVPCF.FAS.FBLG.S0.SE.G5545V00
WER558I ZPSORT EXECUTED
WER482I JNF2 STATISTICS