Skip to Main Content
IBM Z Software


This portal is to open public enhancement requests against IBM Z Software products. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:

Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,

Post your ideas
  1. Post an idea.

  2. Get feedback from the IBM team and other customers to refine your idea.

  3. Follow the idea through the IBM Ideas process.


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.

Status Not under consideration
Categories z/TPFDF
Created by Guest
Created on Feb 11, 2014

TPFDF should provide a more efficient SORT command

TPFUG_Req_Number: DF00021
Contact Originator Id: Waseem Majeed
Abstract: TPFDF should provide a more efficient way to SORT sub-files.
Description: The current SORT command internally uses a DBADD to SORT files. In an effort to make the process more efficient the sub-file is sub-divided into batches of (X) blocks, where X is 10 by default. The use of DBADD makes this similar to a selection and insertion SORT. Essentially that means reading through the file to find the correct place to insert the record, moving the rest of the records to make room for the new record and then adding that record. This causes extensive searching and I/O operations as TPFDF moves from one end of the file to the other and back. This process is very I/O intensive and requires a lot of comparisons and data movements. The technique of using batches does little to improve performance as the same process is repeated when merging the sorted batches. The performance can be improved somewhat by using DETAC mode which does cut down on the I/O but not the path length and data compares and moves.

What is needed is a better SORT algorithm and also one that takes advantage of the TPF HEAP storage.
Critical Success Factors: If an economical means to sort large sub-files is not available, then either the process is very inefficient or in some cases not feasible at all. In the latter case, the result is that user requirements cannot be met and some business function is impacted.
Alternative Solutions: Sorting of data is a well researched and studied subject. Many algorithms for sorting have been devised and documented in the literature. One or more of these could be adapted for TPFDF, taking into account the characteristics of the TPF environment.

Idea priority Low
  • Guest
    Reply
    |
    Oct 14, 2015

    Due to processing by IBM, this request was reassigned to have the following updated attributes:
    Brand - Servers and Systems Software
    Product family - z Systems Software
    Product - z/TPF

    For recording keeping, the previous attributes were:
    Brand - WebSphere
    Product family - Transaction Processing
    Product - z/TPF