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

Sort and Split data based on condition


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Tue Mar 19, 2013 12:42 pm
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
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Mar 19, 2013 1:45 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 4
No new posts Store the data for fixed length COBOL Programming 1
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
Search our Forums:

Back to Top