View previous topic :: View next topic |
Author |
Message |
oneofspace Beginner
Joined: 18 Nov 2008 Posts: 33 Topics: 14
|
Posted: Thu Apr 29, 2010 11:02 am Post subject: Merging the records |
|
|
Hi
I am having records of length 9 and I want to merge them into a record of length 43.
I/P
Code: | AAAAAAAAA
BBBBBBBBB
CCCCCCCCC
DDDDDDDDD
EEEEEEEEE
FFFFFFFFF |
O/P
Code: | AAAAAAAAABBBBBBBBBCCCCCCCCCDDDDDDDDDEEEEEEE
EEFFFFFFFFF |
Thanks in advance
One. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Thu Apr 29, 2010 12:47 pm Post subject: |
|
|
oneofspace,
It gets trickier to push the left over bytes on to the next group. (5 * 9 = 45 and you want only 43 so the first left over bytes is 2 and then next set it will be 4 and so on ....)
Can't think of an easier way to do in 1 or 2 passes. _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
papadi Supermod
Joined: 20 Oct 2009 Posts: 594 Topics: 1
|
Posted: Thu Apr 29, 2010 5:16 pm Post subject: |
|
|
Sometimes programmers just need to program. . .
This is a trivial bit of program code. . . _________________ All the best,
di |
|
Back to top |
|
|
|
|