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
 
How to Merge fields in Same Record

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: How to Merge fields in Same Record
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Sat Nov 01, 2008 4:15 pm    Post subject: Reply to: How to Merge fields in Same Record
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    Post subject:
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    Post subject:
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    Post subject:
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    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 Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Repeat part of record multiple times Learncoholic DFSORT/ICETOOL 4 Tue Aug 29, 2017 11:33 am

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