BillyBoyo wrote:It's a simple JOINKEYS with the key, specifying JOIN UNPAIRED,F!,ONLY, you'll need to also SORT in the maintask to get the data back into your original key order (001/002/003).
Hi BillyBoyo
Thanks for giving info
I tried with unpaired joined and keeping f1 file only, on running it will give the return code 16. Below is the code
000028 SORT FIELDS=COPY
000029 JOINKEYS FILE=F1,FIELDS=(20,19,A)
000030 JOINKEYS FILE=F2,FIELDS=(20,19,A)
000031 JOIN UNPAIRED,F1,F2
000032 REFORMAT FIELDS=(F1:1,16104)
getting this error message code
ICE411I
0 THIS
IS THE JOINKEYS
MAIN TASK
FOR JOINING F1
AND F2
ICE416I
0 JOINKEYS
IS USING THE F1 SUBTASK
FOR SORTJNF1 - SEE JNF1JMSG MESSAGES
ICE416I
1 JOINKEYS
IS USING THE F2 SUBTASK
FOR SORTJNF2 - SEE JNF2JMSG MESSAGES
ICE419I
0 JOINED
RECORDS:
TYPE=F,
LENGTH=
16104 ICE201I
0 RECORD TYPE IS F -
DATA STARTS
IN POSITION 1 ICE805I
1 JOBNAME: JTHTEZT1 , STEPNAME: STEP020
ICE802I
0 BLOCKSET TECHNIQUE
IN CONTROL ICE143I
0 BLOCKSET
COPY TECHNIQUE SELECTED
ICE250I
0 VISIT
http://www.ibm.com/storage/dfsort FOR DFSORT PAPERS, EXAMPLES AN
ICE000I
1 -
CONTROL STATEMENTS
FOR 5650-ZOS, Z/OS
DFSORT V2R1 -
17:
12 ON SAT
DE SORT FIELDS=
COPY JOINKEYS
FILE=F1,
FIELDS=
(20,
19,A
) JOINKEYS
FILE=F2,
FIELDS=
(20,
19,A
) JOIN UNPAIRED,F1,F2
REFORMAT
FIELDS=
(F1:
1,
16104) ICE043A
8 INVALID DATA SET ATTRIBUTES: SORTOUT
BLKSIZE - REASON CODE
IS 06 ICE751I
0 C5-I21470 C6-BASE C7-K96411 C8-I25275 E7-I22412
ICE052I
3 END OF DFSORT