Split a file into multiple files based on line numbers and first column value

Hi All
I have one query,say i have a requirement like the below code should be
move to diffent files whose maximum lines can be of 10 lines.Say in the below example,it consist of 14 lines.
This should be moved logically using the data in the fisrt coloumn to file1 and file 2.The data of first coloum should
not be present in both files(file 1 and file2 for a value i.e in the below example 102103 should be in on file only.In the below
example 102103 has 8 lines and i cannot place all in file 1 bcos it will exceed the maximum lines of file(10) .
Input

102100|LName|Gender|Company|Branch|Bday|Salary|Age
102100|bbbb|male|cccc|dddd|19900814|15000|20|
102101|asdg|male|gggg|ksgu|19911216|||
102102|bdbm|male|kkkk|acke|19931018||23|
102102|kfjg|male|kkkc|gkgg|19921213|14000|24|
102102|bprb|male|cccc|pppp||15000|20|
102103|kfjg|male|kkkc|gkgg|19921213|14000|24|
102103|bprb|male|cccc|pppp||15000|20|
102103|kfjg|male|kkkc|gkgg|19921213|14000|24|
102103|bprb|male|cccc|pppp||15000|20|
102103|kfjg|male|kkkc|gkgg|19921213|14000|24|
102103|bprb|male|cccc|pppp||15000|20|
102103|kfjg|male|kkkc|gkgg|19921213|14000|24|
102103|bprb|male|cccc|pppp||15000|20|

Output should be like below:
File 1:

102100|LName|Gender|Company|Branch|Bday|Salary|Age
102100|bbbb|male|cccc|dddd|19900814|15000|20|
102101|asdg|male|gggg|ksgu|19911216|||
102102|bdbm|male|kkkk|acke|19931018||23|
102102|kfjg|male|kkkc|gkgg|19921213|14000|24|
102102|bprb|male|cccc|pppp||15000|20|

File 2

102103|kfjg|male|kkkc|gkgg|19921213|14000|24|
102103|bprb|male|cccc|pppp||15000|20|
102103|kfjg|male|kkkc|gkgg|19921213|14000|24|
102103|bprb|male|cccc|pppp||15000|20|
102103|kfjg|male|kkkc|gkgg|19921213|14000|24|
102103|bprb|male|cccc|pppp||15000|20|
102103|kfjg|male|kkkc|gkgg|19921213|14000|24|
102103|bprb|male|cccc|pppp||15000|20|

Thanks in advance.

what you tried so far ?

dont double post it.

The UNIX and Linux Forums - Forum Rules

(4) Do not 'bump up' questions if they are not answered promptly. No duplicate or cross-posting and do not report a post or send a private message where your goal is to get an answer more quickly.

Bumping up posts or double posting is not permitted in these forums.

Please read the rules, which you agreed to when you registered, if you have not already done so.

You may receive an infraction for this. If so, don't worry, just try to follow the rules more carefully. The infraction will expire in the near future

Thank You.

The UNIX and Linux Forums.