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

Edit last record


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

Active Member


Joined: 08 Apr 2010
Posts: 577
Location: USA

PostPosted: Tue Aug 31, 2010 11:36 pm
Reply with quote

Frank,
My comments for not using multiple subsets in this situation was relating to the fact that SUBSET may have to invoke SORT routine twice in performing TRAILER operations. Also the solution which I was referring to OP about ,was provided by you in some other thread and hence I asked OP to seek your feedback/comments.

From DFSort Application Programming
Quote:
If the criteria includes the last n records, ICETOOL may call DFSORT twice. For the first pass, ICETOOL counts the indd records without opening the output data sets. For the second pass, ICETOOL opens the output data sets and does SUBSET processing against the indd data set using the count obtained in the first pass.


Since this topic went little sidetracked, I decided to share only little information which was relevant.

Thanks,
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


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

PostPosted: Wed Sep 01, 2010 1:20 am
Reply with quote

Yes, it may invoke DFSORT twice, but for two copy operations which is usually pretty fast and in the case of SUBSET, it's a special copy operation which is even faster.

The other solution I gave is actually similar to the SUBSET solution and may or may not perform better. The only way to know would be to try them both with the specific data of interest. But I wouldn't make a blanket statement that one is necessarily more efficient than the other without testing them.

What I'm really trying to say here is: I would advise against making blanket statements about what is more efficient than what. YMMV.
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
Search our Forums:

Back to Top