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

Sort to construct single record from number of rows of input


IBM Mainframe Forums -> SYNCSORT
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Deepti_R

New User


Joined: 07 Nov 2019
Posts: 3
Location: USA

PostPosted: Wed Nov 13, 2019 12:14 am
Reply with quote

Hi,

My input is
3000ABC 176579
3000ABC 677856
3000ABC 987547
2000QWE 097580
2000QWE 457900

Can we use sort jcl to get desired output like this -
3000ABC 176579 677856 987547
2000QWE 097580 457900

Also, if then are there any constraints?

Thanks,
Deepti
Back to top
View user's profile Send private message
sergeyken
Warnings : 2

Senior Member


Joined: 29 Apr 2008
Posts: 1030

PostPosted: Wed Nov 13, 2019 1:56 am
Reply with quote

Deepti_R wrote:
Can we use sort jcl to get desired output like this -
3000ABC 176579 677856 987547
2000QWE 097580 457900

Yes, you can - for a limited number of rows.

What did you try yet?

Deepti_R wrote:

Also, if then are there any constraints?

If there are any constraints, you can either ignore them, or take them into account - depending on your own needs. We have no info about them.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


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

PostPosted: Wed Nov 13, 2019 2:36 am
Reply with quote

Quote:
Can we use sort jcl

No - for the simple reason that JCL does not manipulate data. However, you might be able to use the sort program if you use the correct sort control statements.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 2638
Location: NYC,USA

PostPosted: Wed Nov 13, 2019 8:43 pm
Reply with quote

Read here:
combining multiple records into one using ICETOOL or DFSORT
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 -> SYNCSORT

 


Similar Topics
Topic Forum Replies
No new posts Print report for each record from mul... CA Products 1
No new posts how to list the number of backup data... JCL & VSAM 3
No new posts SYNCSORT/ICETOOL JOINKEYS SORT Statem... DFSORT/ICETOOL 13
No new posts Installing sort utilities on hercules... DFSORT/ICETOOL 4
No new posts Build two or more rows given some con... DFSORT/ICETOOL 9
Search our Forums:

Back to Top