IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to append all the records into one single record


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
guruji
Warnings : 1

New User


Joined: 13 Apr 2007
Posts: 59
Location: Chennai

PostPosted: Thu Nov 05, 2009 7:53 pm
Reply with quote

Hi all,

I have a file with data given as below:

Code:
ABCD 1123 1234 123456 1123 ABC1 CDEF
     1124 1235 123457 1124 FGTH GHT7
     1342 1456 145767 1456 RTGY NJU6
ABCE 1122 1235 123457 1123 ABCS CDEB
     1122 1237 123454 1120 FGTJ GHT2
     1341 1455 145747 1459 RTGS NJU2


I want to append all the consecutive records corresponding to the first field 'ABCD' into one single record, and similarly for 'ABCE', and writing the output file having an increased record length. The out put file will somewhat look like:

Code:
ABCD 1123 1234 123456 1123 ABC1 CDEF 1124 1235 123457 1124 FGTH GHT7 1342 1456 145767 1456 RTGY NJU6
ABCE 1122 1235 123457 1123 ABCS CDEB 1122 1237 123454 1120 FGTJ GHT2 1341 1455 145747 1459 RTGS NJU2
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Thu Nov 05, 2009 10:58 pm
Reply with quote

guruji,

How many records can you have per key? You show 3 lines for each key, is that the max? or can you have more than that?

What is the LRECL and RECFM of the input file? What is the position and format of the key 'abcd'?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
Search our Forums:

Back to Top