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
 
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 add sequence number for duplicate rec... SRUTHI DRAVIDAMANI COBOL Programming 11 Thu Feb 22, 2018 5:37 pm
No new posts how to add the amount for duplicate r... SRUTHI DRAVIDAMANI COBOL Programming 6 Wed Feb 21, 2018 7:21 pm
No new posts Merging records, but not all the time prino DFSORT/ICETOOL 17 Sat Feb 17, 2018 4:20 pm
No new posts Need all records with high key kalidasvs SYNCSORT 15 Fri Feb 09, 2018 10:38 pm
No new posts Why is SORT rearranging records that ... cschablow DFSORT/ICETOOL 4 Wed Jan 24, 2018 10:14 pm

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