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
 

 

Putting the records in Hirarchy

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
manoopatil

New User


Joined: 07 Dec 2003
Posts: 56
Location: Montreal

PostPosted: Wed Nov 05, 2008 4:38 am    Post subject: Putting the records in Hirarchy
Reply with quote

I want to sort a files in a hierarchical fashion


Code:

1330                         ABLCADATA
41T6035749                   4BLCA1330
BUSINESSSAVINGSPLAN    0001181BLCA41T6035749
4166317851             0001181BLCA41T6035749
NCNDDA4166317851       0001181BLCA4166317851
1331                         ABLCADATA
1333                         ABLCADATA
41T6025695                   4BLCA1333
1334                         ABLCADATA
41T6025696                   4BLCA1334
BUSINESSSAVINGSPLAN    0001161BLCA41T6025696
9058813250             0001161BLCA41T6025696
NCNDDA9058813250       0001161BLCA9058813250
1337                         ABLCADATA


The value "DATA" in first row is a parent name and the value "1330" in the same row is the child name. Further to this row I need to place the records where child name in the previous row should be the parent in the next row. Please refer to second row where "1330" is a parent name.

Can this type of SORTING done using the Syncsort?

Please let me know if additional information is needed

Thanks
-Manohar
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Nov 05, 2008 5:32 am    Post subject:
Reply with quote

Hello,

What you describe is not "sorting" - what you have described is a BOMP (Bill of Materials Process).

Quote:
Please let me know if additional information is needed
You need to post the output you want from this process. If what you have posted is by chance the output, you need to post the input in some other sequence and explain the rules for getting from the input data to proper output sequence.

For examnple: There are multiple "41T6" entries. One might "see" how they should work, but the rules must be specified in order to write code.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am
No new posts Inserting records based on conditions vickey_dw DFSORT/ICETOOL 9 Wed Feb 22, 2017 1:33 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