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

Pull out a chunk of records


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

New User


Joined: 28 Mar 2008
Posts: 69
Location: 125.16.180.5

PostPosted: Wed Aug 11, 2010 8:33 pm
Reply with quote

Hi,

I have My input file like
Code:

Id-1
afsdfsd
dsgsfgdfg
gsdfgfdgdf
gsdfgdfg
E-id
Id-2
dasfsdfsd
fsdfsdfds
fsdfsdfsd
E-id
Id-3
fdsfsdfsd
fsdfsdfsd
fsdfsd
E-id
Id-4
sdfsdfsd
fsdfsdf
E-id


Now i would like to pull out the chunk of records only id-3, like output file should be like

Code:

Id-3
fdsfsdfsd
fsdfsdfsd
fsdfsd
E-id


any suggestions on how to do this would be highly helpful. Thanks!!
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Wed Aug 11, 2010 8:46 pm
Reply with quote

karthik_sripal,

See the Smart DFSORT trick "Include or omit groups of records" which does exactly what you want.

www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000094
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Format data from multiple records usi... SYNCSORT 4
No new posts Sort SMF records? SYNCSORT 6
No new posts To Sort detail records in a file with... SYNCSORT 5
No new posts Identify and write records containing... SYNCSORT 11
No new posts Filter records where condition is in ... SYNCSORT 6
Search our Forums:


Back to Top