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
 

 

Sort and Split data based on condition

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

New User


Joined: 14 Nov 2007
Posts: 18
Location: US

PostPosted: Tue Mar 19, 2013 10:44 am    Post subject: Sort and Split data based on condition
Reply with quote

Hi,

I would like to sort and group the following input by name. The RECFM is FB and LRECL is 80. Could some one help me doing this using JCL

Input Details:

Name: Ram Kumar
Heading
Note: ABC 00
Detail: 001 XYZ QWERY
Name: Jay Kay
Heading
Note: SDF 00
Detail: 001 XYC WERFR
Name: Ram Kumar
Heading
Note: ABX 00
Detail: 001 XYX QWERW


Output details:(Sorted and grouped by name)

Name: Jay Kay
Heading
Note: SDF 00
Detail: 001 XYC WERFR
Name: Ram Kumar
Heading
Note: ABC 00
Detail: 001 XYZ QWERY
Heading
Note: ABX 00
Detail: 001 XYX QWERW
Back to top
View user's profile Send private message

Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1534
Location: Andromeda Galaxy

PostPosted: Tue Mar 19, 2013 12:42 pm    Post subject:
Reply with quote

How many DUPLICATE header for different groups possible in a given input file?
Back to top
View user's profile Send private message
jramuk

New User


Joined: 14 Nov 2007
Posts: 18
Location: US

PostPosted: Tue Mar 19, 2013 1:36 pm    Post subject: Reply to: Sort and Split data based on condition
Reply with quote

Hi,

Any number of duplicates possible at the max. 10
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Tue Mar 19, 2013 1:45 pm    Post subject: Reply to: Sort and Split data based on condition
Reply with quote

So, as well as what you have mentioned, you want to remove "duplicate" "Name:" records which can be identified after the sorting has been done?
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
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. SORT trick needed bshkris SYNCSORT 6 Tue May 02, 2017 4:35 am


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