Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to append all the records into one single record

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
guruji
Warnings : 1

New User


Joined: 13 Apr 2007
Posts: 59
Location: Bangalore

PostPosted: Thu Nov 05, 2009 7:53 pm    Post subject: How to append all the records into one single record
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts Two Selects in a single select query Rohit Umarjikar DB2 1 Fri Nov 04, 2016 8:46 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us