Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts More than 1 Include criteria for sing... Roy Ware SYNCSORT 6 Wed Sep 13, 2017 11:45 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us