Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Concatenaing multiple rows to single row based on a key

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Vignesh Sid

New User


Joined: 04 Sep 2017
Posts: 43
Location: India

PostPosted: Tue Aug 14, 2018 8:59 am    Post subject: Concatenaing multiple rows to single row based on a key
Reply with quote

Hi all,

I have FB file with record length 3000 with records similar to below code:

Code:

----+----1----+----2----+----3----+----4----+----5----+----6
11111111  111  AAAAAAAAAA               SUBJECT1           
11111111  111  AAAAAAAAAA               SUBJECT2           
11111111  111  AAAAAAAAAA               SUBJECT3           
11111111  111  AAAAAAAAAA               SUBJECT4           
11111111  111  AAAAAAAAAA               SUBJECT5           
11111111  111  AAAAAAAAAA               SUBJECT6           
11111111  111  AAAAAAAAAA               SUBJECT7           
11111111  111  AAAAAAAAAA               SUBJECT8           
11111111  111  AAAAAAAAAA               SUBJECT9           
11111111  111  AAAAAAAAAA               SUBJECT10           
11111111  111  AAAAAAAAAA               SUBJECT11           
11111112  112  AAAAAAAAAB               SUBJECT1
11111112  112  AAAAAAAAAB               SUBJECT2


The output file can be VB and should be like:

Code:

----+----1----+----2----+----3----+----4----+----5----+----6
11111111  111  AAAAAAAAAA               SUBJECT1,SUBJECT2,...,SUBJECT11
11111112  112  AAAAAAAAAB               SUBJECT1,SUBJECT2

Could anyone suggest me a way to achieve this.

Thanks,
Viky.
Back to top
View user's profile Send private message

Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 2358
Location: NY,USA

PostPosted: Tue Aug 14, 2018 10:53 am    Post subject:
Reply with quote

Sure.Search for RESIZE Or SPLICE in DFSORT.
Back to top
View user's profile Send private message
darshansai

New User


Joined: 18 May 2019
Posts: 1
Location: INDIA

PostPosted: Mon Jun 03, 2019 4:02 pm    Post subject: Reply to: Concatenaing multiple rows to single row based on a key
Reply with quote

could anyone provide solution please
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2319
Location: Hampshire, UK

PostPosted: Mon Jun 03, 2019 4:09 pm    Post subject: Reply to: Concatenaing multiple rows to single row based on a key
Reply with quote

Please do not revive old topics.

I would guess that the clues provided were enough for TS to come to a satisfactory solution, so it should also do for you. Read the relevant sections of the manual and experiment.
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 Include Group record based on detail ... guptae DFSORT/ICETOOL 11 Thu Mar 12, 2020 1:54 pm
No new posts COBOL - Array result in single variab... vinu78 COBOL Programming 3 Thu Feb 20, 2020 5:29 pm
No new posts Conditional step execution based on P... Lccole10 JCL & VSAM 9 Wed Feb 19, 2020 10:07 pm
No new posts DFSORT to handle in between specific ... subratarec DFSORT/ICETOOL 6 Thu Feb 06, 2020 1:22 am
No new posts Compare 2 records of the same PS file... Twinkle22 COBOL Programming 10 Fri Jan 31, 2020 3:25 pm

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