Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

icetool SUBSET for first 100 record

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

Active User


Joined: 29 Oct 2010
Posts: 187
Location: Toronto, ON, Canada

PostPosted: Mon May 28, 2012 9:56 pm    Post subject: icetool SUBSET for first 100 record
Reply with quote

I ran the below ICETOOL statement to copy the first 100 records of a large dataset:
Code:
SUBSET FROM(ICEIN) TO(ICEOUT) - 
INPUT KEEP RRN(1,100)

I assumed it would copy the first 100 records and then quit. Instead ICETOOL read the entire dataset which took a while since it was a large dataset:
Code:
ICE055I 0 INSERT 0, DELETE 62855791         
ICE054I 0 RECORDS - IN: 62855891, OUT: 100 


I could have done a SORT COPY with STOPAFT=100. Does anyone know why ICETOOL read the entire dataset?
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Mon May 28, 2012 11:00 pm    Post subject: Reply to: icetool SUBSET for first 100 record
Reply with quote

You told it to. Or rather, you didn't tell it not to. FIRST(100)
Back to top
View user's profile Send private message
jerryte

Active User


Joined: 29 Oct 2010
Posts: 187
Location: Toronto, ON, Canada

PostPosted: Tue May 29, 2012 1:18 am    Post subject:
Reply with quote

Thanks. The FIRST(100) does what I expected it to do.

When I code the RRN(1,100) then ICETOOL invokes an E15 user exit program. What puzzles me is why this program doesn't do some simple math and determine that once it has sent out 100 records that there is no need to read more records since nothing more will get written.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Tue May 29, 2012 10:56 pm    Post subject:
Reply with quote

Given the umpteen variations of the different operands which can be mixed and matched, it is NOT just "simple math"! I built in some short cuts for special operands such as FIRST(n), but to build in short cuts for every possible variation was prohibitive. Keep in mind that for a general purpose utility, what non-developers see as "simple" often isn't "simple" for the guy who has to actually develop it, and there are many tradeoffs.

Nothing stops you from using a simple DFSORT job with STOPAFT=n if you understand how that works.
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 Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am
No new posts Using ICETOOL, how we can seperate th... bshkris SYNCSORT 5 Tue May 09, 2017 8:33 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Group elements using ICETOOL Learncoholic DFSORT/ICETOOL 2 Fri Apr 14, 2017 11:01 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us