Hello,
Is there some reason you have not looked in the documentation. . .
The "x" is the length.
There are many examples in the forum so even if you are unwilling to look in the manual, everything you need is available here.
deva_048 wrote://OPT EXEC PGM=SORT
//SORTJNF1 DD *
11111
22222
//SORTJNF2 DD *
11111
33333
//SORTOUT DD DSN=ARXA2M.DPAK100.OUT,DISP=SHR
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
JOINKEYS FILE=F1,FIELDS=(1,10,A)
JOINKEYS FILE=F2,FIELDS=(1,10,A)
JOIN UNPAIRED,F1,ONLY
SORT FIELDS=COPY
/*
Problem is now it is not displaying the result in dataset which mentioned in sortout
deva_048 wrote:NF1 contains 9lakh records
NF2 contains 7 lakh records
Used above posted jcl in control cards (1,21,a) I need to obtain remaining 2 lakhs records
i/p strucuture WILL BE LIKE THIS:
APLU027951387 ,161524310 ,1803565,179 ,04/07/2012,8 ,00992501102000506963 ,0400646871093,0400646871093,4,147020074 ,03/29/2012,C,ICM11300,2012-03-29-20.04.54.439028
SORTJNF1 : RCD IN= 982245,OMITTED= 0,PAIRED= 982245,UNPAIRED= 0
SORTJNF2 : RCD IN= 742926,OMITTED= 0,PAIRED= 742926,UNPAIRED= 0