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 Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Sort Large record length cmsmoon DFSORT/ICETOOL 14 Tue Apr 11, 2017 5:49 pm


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