Executing a stored procedure in after sql

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
rgilmore
Participant
Posts: 2
Joined: Tue Aug 26, 2003 12:41 pm
Location: USA

Executing a stored procedure in after sql

Post by rgilmore »

The sql statement is: EXECUTE APPL_TOOLS.ANALYZE_TABLE('RGILMORE','b_acct_tran_eod'); This stored procedure works fine when I run the procedure in sql plus. RGILMORE is the owner parameter and the b_acct_tran_eod is the table name.

The error I'm getting is: ORA-00900: invalid SQL statement

Is there something I need to add in order for data stage to submit a valid sql statement?

Thanks,
Robert
Paul Preston
Participant
Posts: 24
Joined: Wed Apr 02, 2003 7:09 am
Location: United Kingdom

Post by Paul Preston »

Try using the syntax:

CALL APPL_TOOLS.ANALYZE_TABLE('RGILMORE','b_acct_tran_eod');

That should work.

Paul.
rgilmore
Participant
Posts: 2
Joined: Tue Aug 26, 2003 12:41 pm
Location: USA

Post by rgilmore »

Thanks, that worked perfectly.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You usually need CALL to invoke a stored procedure from an ODBC, or ODBC-based, client.
Post Reply