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
 

 

Accumalation of records

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Accumalation of records
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    Post subject:
Reply with quote

check DFSORT trick book=> www.ibm.com/systems/support/storage/software/sort/mvs/tricks/
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

Site Director


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

PostPosted: Tue Jul 29, 2008 9:53 pm    Post subject:
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 Moderator


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

PostPosted: Tue Jul 29, 2008 9:58 pm    Post subject:
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    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 split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm


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