Page 1 of 1

OUTREC FIELD OUTSIDE RANGE

PostPosted: Thu Jun 07, 2012 6:41 pm
by jvinoth
Hi,
I have used the below error messge when excecuting the sort for matching the records.

JOINKEYS FILE=F1,FIELDS=(1,7,A,7,7,A)                             
JOINKEYS FILE=F2,FIELDS=(1,7,A,7,7,A)                             
OPTION COPY                                                       
REFORMAT FIELDS=(F1:1,7,7,7,F2:15,11,16,15,F1:15,3)               
OUTFIL FNAMES=OUT,BUILD=(1,7,C'|',8,7,C'|',16,11,C'|',27,15,C'|',
                         42,3,80:X)                               


error messge

WER481I  JOINKEYS REFORMAT RECORD LENGTH=   43, TYPE = F   
WER230A  OUT      OUTREC FIELD OUTSIDE RANGE               
WER211B  SYNCSMF  CALLED BY SYNCSORT; RC=0000             



please help me.

thanks.

Re: OUTREC FIELD OUTSIDE RANGE

PostPosted: Thu Jun 07, 2012 7:20 pm
by NicC
Ah - too bad. What is wrong is you are trying to run a SYNCSORT job in a DFSORT forum. The two are incompatible in a lot of ways.

Re: OUTREC FIELD OUTSIDE RANGE

PostPosted: Thu Jun 07, 2012 7:34 pm
by jvinoth
i have two file and need to compare the fileds(1,7 and 7,7) in both the files.if both are same i need to write some selected fields into the ouput file.

Re: OUTREC FIELD OUTSIDE RANGE

PostPosted: Thu Jun 07, 2012 8:43 pm
by dick scherrer
Hello,

If you continue to post in the DFSORT forum, the topics will be deleted.

As the messages rather clearly show, you are trying to write more data than the lrecl can handle.

Re: OUTREC FIELD OUTSIDE RANGE

PostPosted: Thu Jun 07, 2012 10:38 pm
by BillyBoyo
You have a 43-byte REFORMAT record and you are accessing 42,3.

Re: OUTREC FIELD OUTSIDE RANGE

PostPosted: Mon Jun 11, 2012 3:22 pm
by jvinoth
I have corrected it and its working fine..thanks for your post.