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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
jcpreaux
Contributor II
Contributor II

Another solution to solve this problem ?

Hi The Community !

 

I've a job which purpose is to extract data from a database and to generate a file with these datas.

And as an extra, first and last lines must contain  the numbers of extracted rows.

 

I've done a job which works well (see below) but is there another best solution to do this ?

 

0683p000009LwX4.png

 

Thanks !

 

JCP

 

 

Labels (2)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II

Hi,

As you can't get the number of records before the select result, your solution is ok.

Maybe for the last line you should use a tFileRowCount (-1) to get the real nmber of lines in the output file (1rst line = expected number of records - last line = effective number of records).

 

Edit: I replaced "you get" by "you can't get" - of course!

View solution in original post

1 Reply
TRF
Champion II
Champion II

Hi,

As you can't get the number of records before the select result, your solution is ok.

Maybe for the last line you should use a tFileRowCount (-1) to get the real nmber of lines in the output file (1rst line = expected number of records - last line = effective number of records).

 

Edit: I replaced "you get" by "you can't get" - of course!