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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
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 Join multiple records using splice DFSORT/ICETOOL 5
Search our Forums:

Back to Top