Need Help, Very TOugh Task

HI, please check attached images, in that every 12 rows need to form as one record, like 1st 12 lines goes to record 1 , nexr 12 lines goes to record 2 …

any inputs … thanks in advance