Return record set from tOracleSP

One Star

Return record set from tOracleSP

Hi, I am trying to retrieve a record set via the stored procedure rather than a tOracleInput
Here is my sp
PROCEDURE GetLatAndLongs(recordset out SYS_REFCURSOR)
AS
BEGIN
GetLastRunDate('WeatherData', rundate);
UpdateStartTime('WeatherData');
open recordset FOR
SELECT DISTINCT round(latitude,2), round(longitude,2)
FROM locationhistory
where readingdate >= RUNDATE;
UpdateEndTime('WeatherData');
END GetLatAndLongs;
I've attached a screen print of how the tOracleSP is set up.
Thanks
Community Manager

Re: Return record set from tOracleSP

Hi
After returning a recordset, you can use a tParseRecordSet component to parse the recordset, here is an example job:
http://www.talendforge.org/forum/viewtopic.php?id=7942
----------------------------------------------------------
Talend | Data Agility for Modern Business

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog