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

Accumalation of records


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sahil mohta

New User


Joined: 25 Jul 2008
Posts: 5
Location: pune

PostPosted: Tue Jul 29, 2008 5:51 pm
Reply with quote

hiii,

i have to accumalate the records present in my file like :-

1 hi mike
1 hello ravi
2 hi bob
3 hi pop
2 yes luv


and i want the output as :-

1 hihello mikeravi
2 hiyes bobluv
3 hi pop

i think this can be done by the DFSORT but how that i dont know.
and if there is any other means to solve this problem than please tell me.

thanks & regards.
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Tue Jul 29, 2008 6:20 pm
Reply with quote

check DFSORT trick book=> Use [URL] BBCode for External Links
for the topics "Join fields from two files on a key" and "Join fields from two files record-by-record"
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jul 29, 2008 9:53 pm
Reply with quote

Hello,

I see no "2 files" icon_confused.gif
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Tue Jul 29, 2008 9:58 pm
Reply with quote

Sahil Mohta,

Yes, you can do this with DFSORT/ICETOOL. But you need to supply more information before I can show you how.

Please tell me the starting position and length of each field in your input records, and the starting position and length of each field in your output records.

I assume the first field is the key - can you only have one or two instances of the same key (e.g. 1) or can you have more than two instances? If you can have more than two instances, show an example of the input and output records for that. Please use BBCODE code tags for examples.

Also, what is the RECFM and LRECL of your input file?
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 Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Join multiple records using splice DFSORT/ICETOOL 5
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top