IBM Data & AI

 Welcome to the IBM Data & AI Ideas Portal for Clients! 

We welcome and appreciate your feedback on IBM Data & AI Products to help make them even better than they are today!
Before you submit an idea, please perform a search first as a similar idea may have already been reported in the portal.  If a related idea is not yet listed, please create a new idea and include with it a description which includes expected behavior as well as why having this feature would improve the service and how it would address your use case.
IBM Employees:
  • Our team welcomes any feedback  and suggestions you have for improving our offerings / products!  This forum allows us to connect your offering / product improvement ideas with IBM product and engineering teams.
  • If you have not registered on this portal please click on the following link and register.  To complete registration you will need to open the email you will receive from Aha to confirm your identity.
Additional Information:
  • The shorter URL for this site is:
  • To view our roadmaps:
  • Reminder: This is not the place to submit defects or support needs, please use normal support channel for these cases
  • Please do not use the Ideas Portal for reporting bugs - we ask that you report bugs or issues with the product by contacting IBM support.

create external table fails on IIAS when executed inside stored procedure

on IIAS create external table fails when executed inside stored procedure.

Here is simple reproduction.

--------- execute CREATE EXTERNAL TABLE statement from command line. Statement succeeds.
[db2inst1@d2 - Db2wh ~]$ db2 "create external table '/tmp/t.txt' using (delimiter '|' remotesource 'YES') as select * from db2inst1.t limit 10"
DB20000I  The SQL command completed successfully.

--- create stored procedure with same exact statement that succeeds from command line.
[db2inst1@d2 - Db2wh ~]$ db2 -td@ -vf create.external.table.sp
create or replace procedure create_ext_table()
dynamic result sets 1
create external table '/tmp/t.txt' using (delimiter '|' remotesource 'YES') as select * from db2inst1.t limit 10;

DB20000I  The SQL command completed successfully.

--- Now execute that stored procedure. Procedure fails. -----
[db2inst1@d2 - Db2wh ~]$ db2 "call create_ext_table()"
SQL1667N  The operation failed because the operation is not supported with the
type of the specified table.  Specified table: "DB2INST1.SYSTET4284".  Table
type: "EXTERNAL".  Operation: "IN NESTED CONTEXT".  SQLSTATE=42858

  • Ricardo Pedraza
  • Jul 22 2019
  • Is a Defect
Why is it useful?
Who would benefit from this IDEA? All our customers migrating from Netezza to IIAS
How should it work?

1) This functionality should be added as it works currently for Netezza and users are migrating to IIAS.

2) Many jobs run from stored procedures but this cannot be done in IIAS.  Running it outside a SP works fine.   Need to have this functionality from inside the SP to give flexibility for path and filename during export.

3) Trying to use NFS but this is not a recommended method by IBM itself.

Idea Priority High
Priority Justification Several mgrations are in place from Netezza to IIAS, Customers are not satisfied when they loose important functionality from one system to another, having to rewrite lots of code.
Customer Name Anthem
Submitting Organization
Submitter Tags
  • Attach files
  • Admin
    Maryia Rakina commented
    29 Jul, 2019 06:29pm

    This is a known difference in Db2's external table implementation. Currently, we have no plans to solve.

NOTICE TO EU RESIDENTS: per EU Data Protection Policy, if you wish to remove your personal information from the IBM ideas portal, please login to the ideas portal using your previously registered information then change your email to "anonymous@euprivacy.out" and first name to "anonymous" and last name to "anonymous". This will ensure that IBM will not send any emails to you about all idea submissions