Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to read query result and put the output into a txt file

Hi,

 

I need to call a stored procedure from talend and then putting the output into a .txt file. How can I do that? Does anyone can help me please? I know ho to call the procedure but I do not know how to store the result in order the put the output in a txt file. I am using Postgres as DB.

Labels (2)
1 Solution

Accepted Solutions
David_Beaty
Specialist
Specialist

Hi,

 

have a a look at the tParseRecordSer component.

 

thanks

 

david.

View solution in original post

6 Replies
David_Beaty
Specialist
Specialist

Hi,

 

have a a look at the tParseRecordSer component.

 

thanks

 

david.

Anonymous
Not applicable
Author

You can also use a tPostgresqlInput component because PostgreSQL allows to call a procedure with a select!

select field_1, field_2 from my_procedure()
Anonymous
Not applicable
Author

Hi,

thank you for your response. I am trying to use it, but I am getting the following error: "Cannot Cast from String to Result Set". I am doing a simple select from myTable which as one column of varchar2. As database I am using Postgres.

 

My job is dbTable (input) -> tParseRecordSet -> tFileOutputDelimited

Anonymous
Not applicable
Author

0683p000009LysS.png

This is my new job. I added tMap. I did not get the error anymore, but output file has not been created. Is there a reason? Am I doing something wrong?

Than you in advance.

Anonymous
Not applicable
Author

I am sorry! I tried again and I am getting the same error now
Anonymous
Not applicable
Author

[solved]

 

I solved the issue. The job is made up of tPostgresqlInput linked to tInputFileDelimeted and it works. Pay attention to " " in Row Separator and Fiel Separator of tInputFileDelimeted.