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
 

 

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: 10234
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 Record Not found in AlX but record re... mukun264 COBOL Programming 7 Fri Mar 24, 2017 9:28 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts DFSORT MUL FIELDS tspr52 DFSORT/ICETOOL 16 Fri Mar 03, 2017 11:53 pm
No new posts To Merge mutliple records into a sing... anandgbe DFSORT/ICETOOL 6 Wed Feb 22, 2017 8:49 am


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