MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Merging the records

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
oneofspace
Beginner


Joined: 18 Nov 2008
Posts: 33
Topics: 14

PostPosted: Thu Apr 29, 2010 11:02 am    Post subject: Merging the records Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12358
Topics: 75
Location: San Jose

PostPosted: Thu Apr 29, 2010 12:47 pm    Post subject: Reply with quote

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 - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Thu Apr 29, 2010 5:16 pm    Post subject: Reply with quote

Sometimes programmers just need to program. . . Wink

This is a trivial bit of program code. . .
_________________
All the best,

di
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group