Hi
I have a VB file with record length 2250(2246+4).This file consists of groups of specific pattern., I need to split this file into 8 splits every time since the file can have a maximum of 3,70,000 groups.each split should have 50,000 groups only. If it's less than maximum limit say only 70,000 groups in input file then 1st split should have 50,000, second 20,000 and rest of the files should get created as an empty file. These splits has to be gdg's. Please let me know how to achieve this using dfsort.
Also I need a trailer in each file at end with count of groups in that file. For example if input has 70,000 groups ( not no of lines) the 1st file trailer should have 50,000 as count. Second file should have 20,000as count in trailer.
My group pattern
00000000000
xxx
Xxx
Xxx
99999999999
00000000000
Xxx
Xxx
99999999999
00000000000
Xx
99999999999
Here my file always has 11 digit zeros 00000000000 as start of the group and 11 digit 9's as end of the group.this is same for all the groups but the content in between start and end of the groups will change. Thanks in advance!
MY input file is vb,recl=2250(2246+4), all my 8 o/p files are vb,recl=2250(2246+4). I am getting error with the above code. it says "POTENTIALLY IINEFFICIENT USE OF INREC", "SORT01 OUTREC RDW NOT INCLUDED".. I tried the same code with fb it worked.i don't know how to give the positions in vb..I know its bit different because of that 4 bytes
MY input file is vb,recl=2250(2246+4), all my 8 o/p files are vb,recl=2250(2246+4). I am getting error with the above code. it says "POTENTIALLY IINEFFICIENT USE OF INREC", "SORT01 OUTREC RDW NOT INCLUDED".. I tried the same code with fb it worked.i don't know how to give the positions in vb..I know its bit different because of that 4 bytes
1. You MUST use 'Code' tags, to make your post viewable to readers (unless you hate all of other readers of your posts)