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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

save tsystem output to file or database

Hi

I want to save the output of tsystem to a databse or file 

is there anyway to do it in TOS ? (for  now it only prints output to console)

here is the python script which tsystem is using 

 

import pandas as pd

data = pd.read_csv('movies.csv')

Labels (3)
3 Replies
Anonymous
Not applicable
Author

Adding this to your script should do it, then you could read it back into the job afterwards if you wanted....

 

import pandas as pd
data = pd.read_csv('movies.csv')
f = open("demofile2.txt", "a")
f.write(data)
f.close()

.....but given what I see in the code, why would you use a python script to read the movies.csv file anyway.....or is it just an example?

Anonymous
Not applicable
Author

this is just an example

akumar2301
Specialist II
Specialist II

tSystem Output are saved in Global Variable like OUTPUT and ERROROUTPUT( in cqse of error)>

 

These cqn be helpful in your case

 

https://help.talend.com/reader/jomWd_GKqAmTZviwG_oxHQ/N3wMjEh4Wlse70QVdDCuaA