Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


tomas.cerny
2018-02-04T07:21:02Z
Hello dear,

I have a job with 2 tasks - first task runs SQL query and stores standard output - including headers (since users like it 🙂 and semicolon delimited. I grab the output in next task and save it to CSV file. Ongoing tasks either save the output file to some folder or send it via email.

It would be prefect, if I could somehow setup, that if the result set is empty (the SQL returns 0 results), then I will stop further job processing. However, with headers turned on, there is always some output.

Of course I can somehow discover size of output file and say that if it's size is less than xx kB, then I won't execute other tasks, however this is not so reliable, since the headers vary across different tasks and I don't take this solution as 'pretty'.

Perhaps there is some feature in VC, that I have missed? Or do you have some other solution?

Thanks for any help/hint in advance.
Sponsor
Forum information
Support
2018-02-05T09:18:28Z
You have this Variable:

sqlnorows.png
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top