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

How to Merge fields in Same Record


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

New User


Joined: 01 Nov 2008
Posts: 9
Location: chennai

PostPosted: Sat Nov 01, 2008 3:31 pm
Reply with quote

I want to get following in DFSORT/ICETOOL

I have input in following format

Code:

A 1
A 2
A 3
B 1
B 3
C 1


and I want output as

Code:

A 1 2 3
B 1 3
C 1


Pls help me to achieve this in DFSORT/ICETOOL

I tried even SPLICE command , it did nt work for me

Regards
ganesh
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Nov 01, 2008 4:15 pm
Reply with quote

search the forum ...
the topic has been debated a few times and a solution was given
Back to top
View user's profile Send private message
ganesh_bv

New User


Joined: 01 Nov 2008
Posts: 9
Location: chennai

PostPosted: Sat Nov 01, 2008 4:46 pm
Reply with quote

I checked some of posts in this forum

if input pattern is like

Code:

A 1
A   2
A     3


output is acheived as

Code:

A 1 2 3               


using SPLICE command using WITH

but my input is

Code:

A 1
A 2
A 3


and i expect output as

Code:

A 1 2 3


pls give me link if solution is given for above pattern
Back to top
View user's profile Send private message
ganesh_bv

New User


Joined: 01 Nov 2008
Posts: 9
Location: chennai

PostPosted: Sat Nov 01, 2008 4:49 pm
Reply with quote

sorry there is position difference between 1 , 2, 3 in following pattern that we acheive easily using SPLICE
A (TAB) 1
A (TAB) (TAB) 2
A (TAB)(TAB)(TAB) 3

but i need solution for pattern where there is no position difference

A (TAB) 1
A( TAB) 2
A (TAB) 3
Back to top
View user's profile Send private message
ganesh_bv

New User


Joined: 01 Nov 2008
Posts: 9
Location: chennai

PostPosted: Sat Nov 01, 2008 4:55 pm
Reply with quote

i got solution from this link

Append record with same keys

Thanks
ganesh
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
Search our Forums:

Back to Top