Skip to Main Content
IBM Power Ideas Portal


This portal is to open public enhancement requests against IBM Power Systems products, including IBM i. 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
Workspace IBM i
Categories IBM i Access Family
Created by Guest
Created on Feb 15, 2019
Merged idea
This idea has been merged into another idea. To comment or vote on this idea, please visit IBMI-I-982 Run SQL statements using IBM I Source physical Files.

ACS Run SQL Script - Work with source physical file member / GENERATE_SQL stored procedure output into the IFS Merged

with the GENERATE_SQL stored procedure and the ACS Wizard Generate SQL, SQL scripts for the selected database object can be stored within a source physical file member. The GENERATE_SQL stored procedure even does not allow to save the result anywhere else.
For recreating the database object the generated SQL script can be executed with the RUNSQLSTM CL command.
But there is no way to open a source physical file member with in the ACS Run SQL script facility for modifying or rerunning the SQL statements.
In this way:
1. ACS Run SQL script facility should be enhanced so source physical file members can be opened
2. The GENERATE_SQL stored procedure should be enhanced so that the generated SQL statements could be alternatively stored in the IFS.


Use Case:

I like to save the SQL scripts for my generated database objects.
After having created the database objects, the SQL script is saved (currently in a source physical file member with the GENERATE_SQL stored procedure).
After I delete the generated database object and run my SQL script, just to make sure source and object are identical.
While RPG and other sources can be stored in the IFS, GENERATE_SQL will only write into source physical file members. If we want to save everything in the same environment, we have to copy the member into the IFS.
If I want to run the SQL code from a source physical file member, I cannot use ACS Run SQL Script, but have to execute the RUNSQLSTM CL command, which is much less flexible than ACS. For example if you try to drop an non-existing object, RUNSQLSTM will crash, ACS can ignore this error.


Idea priority High
  • Guest
    Reply
    |
    Mar 5, 2019

    This RFE contains 2 requests:
    1. ACS Run SQL script facility should be enhanced so source physical file members can be opened
    2. The GENERATE_SQL stored procedure should be enhanced so that the generated SQL statements could be alternatively stored in the IFS.

    The first one is a duplicate of:
    https://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=95556

    For the second one, open up a separate RFE using component "Db2 for i"