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 Delivered
Categories EGL Language
Created by Guest
Created on Aug 20, 2012

ORDER BY makes data service fail

We often generate services to retrieve SQL data from AS/400 using the Data Access Application wizard. The generated services contain several functions amongst which the function to retrieve a list of data which can be specified with the fromTablesWhere attribute. This function is called ?GetxxxxxxxxList'. In this function 2 SQL statements are prepared: 1 to retrieve the data, and 1 to retrieve the row count. This works OK. However when we set the fromTablesWhere to retrieve the data in a sequence specified by an ?ORDER BY' the row count prepared statement fails. This is due to the fact that the ?ORDER BY' is not accepted in a ?SELECT COUNT(*)' statement.
To work around this problem we now included a few lines of code in every data service we create. In the GetxxxxxxxList function before the prepare of the count statement we add these lines in order to remove the ?ORDER BY' part:
length int = characterlen(clip(listSpec.fromTablesWhere));
startpos int = strlib.indexof(listSpec.fromTablesWhere,"ORDER BY");
if (startpos != 0)
listSpec.fromTablesWhere = listSpec.fromTablesWhere[1:startpos-1];
end

We like a solution where no manual changes are needed after generating a service by the Data Access Application wizard. If you consider this RFE to be a defect we'll be glad to open a PMR.

Idea priority Low
  • Guest
    Reply
    |
    Apr 19, 2016

    This feature was delivered in version 9.1.1.

  • Guest
    Reply
    |
    Sep 14, 2015

    Due to processing by IBM, this request was reassigned to have the following updated attributes:
    Brand - Servers and Systems Software
    Product family - Programming Languages
    Product - Business Developer

    For recording keeping, the previous attributes were:
    Brand - Rational
    Product family - Design & development
    Product - Business Developer

  • Guest
    Reply
    |
    Sep 6, 2012

    Thanks you for the input. We agree this is useful functionality, but we don't have a closed plan to deliver currently. We will consider this in our future planning.