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 capture tParseRecordSet output to global variable

Hi,

I have used tParseRecordSet which capturing output of SP.

 

I want to capture Output of tParseRecordSet to Global Variable.

 

Please suggest how to do this activity.

 

Thanks

Amit Srivastava

Labels (2)
1 Solution

Accepted Solutions
manodwhb
Champion II
Champion II

@amsrivastava,then use tSetGlobalVar as shown below.this should work.

 

Key give like Count and Value row2.Counts

0683p000009Lwmy.png

 

View solution in original post

10 Replies
manodwhb
Champion II
Champion II

@amsrivastava,since you can use tSetGlobalVar.

 

check below link how to use tSetGlobalVar.

https://help.talend.com/reader/wDRBNUuxk629sNcI0dNYaA/xx0nz4uGJnqyc7dKOLN4Wg

Anonymous
Not applicable
Author

HI @manodwhb,

My requirement is as below

 

0683p000009Lx77.jpgDetail

1. Stored procedure returns Counts of table and same has been captured in tParseRecordSet (Column Counts)

0683p000009LxHV.jpg

 

Requirement

- to capture output (Counts) in Global Variable.

 

How to capture output of tParseRecordSet to GlobalVariable so that i will use the same further in ETL.

 

Please suggest!!

 

Thanks

Amit Srivastava 

manodwhb
Champion II
Champion II

@amsrivastava,could you able to get the count to tLogrow?

if yes use the tSetGlobalvarafter tLogrow using main.

0683p000009LxHp.png

Anonymous
Not applicable
Author

Hi @manodwhb

YES, i am getting the value..
0683p000009LxGx.jpg

Thanks

Amit 

manodwhb
Champion II
Champion II

@amsrivastava,then use tSetGlobalVar as shown below.this should work.

 

Key give like Count and Value row2.Counts

0683p000009Lwmy.png

 

Anonymous
Not applicable
Author

Hi @manodwhb,

I have done the following

 

Overall

0683p000009LxFk.jpgtSetGlobalVar

0683p000009LxHz.jpg

tJava
0683p000009Lx9h.jpgOutput

0683p000009LxIE.jpg

Still not getting value, getting Null

Please suggest where i have done wrong

 

Thanks

Amit Srivastava

 

manodwhb
Champion II
Champion II

@amsrivastava,use tMap/tJavaRow and get the global variable.

0683p000009Lwto.png0683p000009LxIJ.png

Anonymous
Not applicable
Author

Hi @manodwhb,

 

I have used tJavaRow and got the global variable.

 

Thanks

Amit Srivastava

Anonymous
Not applicable
Author

Hi @manodwhb,

 

That works!!! Thank you!!!

Can you please provide your personal Email Id so that we can issues on Talend.

 

Also, is there another way to capture Output of Stored Procedure in Global variable other than above.

 

Thanks

Amit Srivastava