Skip to Content

input parameter error in the store procedure

Hi all,

I call another store procedure B in the store procedure A. When I active the store procedure A , the error is the following:

Could not create catalog object: feature not supported; Only table variable is allowed in input parameter in a nested call: line 37 col 26 (at pos 1435)

The line 37 is "CALL SYSTEM.PAL_DBSCAN(_SYS_BIC.PAL_DBSCAN_DATA_TBL, _SYS_BIC.PAL_CONTROL_TBL, BASE.PAL_CHAINSTORE_DBSCAN_RESULTS_TBL) with overview; "

The SQL Script is performed successfully in the SQL console. The SQL Script is wrong in a procedure.

Could you help me?

Thanks.

Candy Zhang

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jan 07, 2016 at 06:18 PM

    Hello Candy Zhang,

    If you are calling Procedure B in procedure A and Procedure B has IN params then these parameters must be first stored in a variable and then that variable must be referred. In your case,

    TBL1 := _SYS_BIC.PAL_DBSCAN_DATA_TBL

    TBL2 := _SYS_BIC.PAL_CONTROL_TBL

    TBL3 := BASE.PAL_CHAINSTORE_DBSCAN_RESULTS_TBL

    and then call the procedure as :

    CALL SYSTEM.PAL_DBSCAN(:TBL1, :TBL2, :TBL3);

    Also ensure that these tables passed as IN params are tabletype


    Regards,

    Archana

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.