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

DFSORT sorting only specific records


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
akodakka

New User


Joined: 20 May 2010
Posts: 75
Location: India

PostPosted: Thu Aug 04, 2016 11:24 am
Reply with quote

Hi ,

I have a file like this,

HDR9999
DET0009
DET0001
DET0003
TRL0000

I want to sort only records , 2,3,4 ( keeping my header and trailer rec as it is )and want to get result as below sort condition is (4,4,CH,A)

HDR9999
DET0001
DET0003
DET0009
TRL0000

Could anyone suggest how we can do this using DFSORT

[/b]
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Aug 04, 2016 12:15 pm
Reply with quote

Do a google search for "Smart DFSORT tricks" and your answer awaits icon_biggrin.gif
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


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

PostPosted: Thu Aug 04, 2016 12:46 pm
Reply with quote

DATASORT should help you achieve the same.
Back to top
View user's profile Send private message
akodakka

New User


Joined: 20 May 2010
Posts: 75
Location: India

PostPosted: Thu Aug 04, 2016 1:16 pm
Reply with quote

Thanks guys ..
I used ICETOOL data sort..

Thanks for your time icon_smile.gif
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


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

PostPosted: Thu Aug 04, 2016 2:05 pm
Reply with quote

Glad it helped!! icon_smile.gif
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 4
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
Search our Forums:

Back to Top