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 Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm


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