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: 10288
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 Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 3 Thu Jul 27, 2017 9:16 pm
No new posts Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm


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