File 1 is VB, LRECL=3588, the key is in byte 167 for a length of 6 (added +4 for VB)
File 2 is VB, LRECL=84, the key is in byte 1 for a length of 6 (added +4 for VB)
I want to output all file 1 records where the key exists on File 2.
Here is my SORT control card:
JOINKEYS FILES=F1,FIELDS=(171,6,A)
JOINKEYS FILES=F2,FIELDS=(5,6,A)
REFORMAT FIELDS=(F1:1,3588) (I originally tried this with F1:5,3588 and received the same error below)
SORT FIELDS=(171,6,CH,A)
JOINKEYS FILES=F2,FIELDS=(5,6,A)
REFORMAT FIELDS=(F1:1,3588) (I originally tried this with F1:5,3588 and received the same error below)
SORT FIELDS=(171,6,CH,A)
Error messages after submitting job:
WER481I JOINKEYS REFORMAT RECORD LENGTH= 3588, TYPE = F (original try: JOINKEYS REFORMAT RECORD LENGTH= 3584, TYPE = F)
WER202A SORTOUT RECFM INCOMPATIBLE
WER110I SORTOUT : RECFM=VB ; LRECL= ; BLKSIZE=
WER482I JNF1 STATISTICS
WER483B 1,984K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
WER483B 0 BYTES RESERVE REQUESTED, 436K BYTES USED
WER108I SORTJNF1 : RECFM=VB ; LRECL= 3588; BLKSIZE= 27998
WER482I JNF2 STATISTICS
WER483B 5,972K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
WER483B 0 BYTES RESERVE REQUESTED, 436K BYTES USED
WER108I SORTJNF2 : RECFM=VB ; LRECL= 84; BLKSIZE= 27998
WER202A SORTOUT RECFM INCOMPATIBLE
WER110I SORTOUT : RECFM=VB ; LRECL= ; BLKSIZE=
WER482I JNF1 STATISTICS
WER483B 1,984K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
WER483B 0 BYTES RESERVE REQUESTED, 436K BYTES USED
WER108I SORTJNF1 : RECFM=VB ; LRECL= 3588; BLKSIZE= 27998
WER482I JNF2 STATISTICS
WER483B 5,972K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
WER483B 0 BYTES RESERVE REQUESTED, 436K BYTES USED
WER108I SORTJNF2 : RECFM=VB ; LRECL= 84; BLKSIZE= 27998
The error is stating that the LRECL is 3588 and the record format is F(ixed). I defined the output file as RECFM VB, LRECL 3588.
My original intention was to join a FB80 and VB3588 file into a VB3588 output file but was getting incompatible errors so I copied the FB80 file to a VB84 file so I would at least get past that problem.
Thanks.