Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
ICETOOL "SUBSET" operator question

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
David Sde

New User


Joined: 24 Apr 2011
Posts: 23
Location: USA

PostPosted: Tue Jul 28, 2015 7:53 pm    Post subject: ICETOOL "SUBSET" operator question
Reply with quote

Hi,

I have an FB 80 dataset, from which I would like to remove the second and third record from the end. E.g.:

Code:
Input:

AAA
BBB
...
YYY
ZZZ
TRAILER

Output:

AAA
BBB
...
TRAILER

The documentation makes me think this isn't doable using SUBSET... might I be missing something? Is there another approach I can take?

Any help would be appreciated; thank you!

David
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Tue Jul 28, 2015 8:11 pm    Post subject: Reply to: ICETOOL "SUBSET" operator question
Reply with quote

SUBSET is not going to do it for you directly.

IF you knew the record-numbers of the records you wanted to drop, or could identify them by something other than their position, then SUBSET/something else would do you.

However.

What is in the trailer? It would be possible to drop the last three records, then add a TRAILER1 on OUTFIL, if all the data to make the TRAILER1 is available (or can be made available).
Back to top
View user's profile Send private message
David Sde

New User


Joined: 24 Apr 2011
Posts: 23
Location: USA

PostPosted: Tue Jul 28, 2015 8:25 pm    Post subject: Reply to: ICETOOL "SUBSET" operator question
Reply with quote

Quote:
What is in the trailer? It would be possible to drop the last three records, then add a TRAILER1 on OUTFIL


Yes! That's the answer; the trailer record is a constant. Perfect; thank you!

David
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts Question related to Data dictionary f... rexx77 SYNCSORT 3 Thu Aug 31, 2017 7:23 am
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
No new posts Changeman get multiple "Browse C... elixir1986 Compuware & Other Tools 4 Fri Jul 14, 2017 1:48 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us