Skip to Main Content
IBM Z Hardware and Operating Systems Ideas Portal


This is the public portal for all IBM Z Hardware and Operating System related offerings. 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
Workspace z/OS
Categories DFSMS DFSORT
Created by Guest
Created on Jan 3, 2018

Variable length record INCLUDE substring comparison VLSHRT VLSCMP

I'm interested in the substring comparison specification in DFSORT's INCLUDE statement.

It would be nice if the (p1,m1,SS, EQ|NE,constant) specification for a substring comparison allowed for setting m1=0 to indicate from p1 to the end of the record.

The situation I'm thinking of is where there are variable-length records with some data of fixed length at the start followed by variable length data. You want to select those records for which this variable length data contains a particular string. You have no idea how long the variable data is.

You could do this using SORT control statements like this:
OPTION COPY,VLSHRT,VLSCMP
INCLUDE COND=(45,1,CH,EQ,C'L',AND,
46,1,CH,LT,X'02',AND,
1237,30000,SS,EQ,C'ENDLVL ')
but it seems to me that using VLSCMP must involve a fair amount of data movement for each input record.

If the final operand could be specified
1237,0,SS,EQ,C'ENDLVL ')
the input buffer could be scanned for the string and this data movement would be avoided and you wouldn't need to specify the VLSCMP option.

It seems to me that this would be a fairly painless enhancement to DFSORT's functionality...

Idea priority Low
  • Guest
    Reply
    |
    Jan 29, 2024
    This item is a valid requirement but unlikely to be given high enough priority to be placed into the product plan.