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

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

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 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download