I have a file in which I don't know the number of records (policies only of length 10). I have to split the file in to two parts with equal number of policies (1 difference can happen in case of total odd number). Does any SORT options are available to use in jcl to split the file from middle. Please let me know. Appreciate you help.
Please note, We could split it after giving specific number like below, but if I don't want to hard code the number.
SORT FIELDS=COPY
OUTFIL FNAMES=OUT1,ENDREC=00100000
OUTFIL FNAMES=OUT2,SAVE
OUTREC FIELDS=(1:1,4,5:6,10)
KCT.ITO4860.SOR1
===>
********************
010EC00088
010EC00662
010EC00718
010EC00936