Return Value from the routine...
Posted: Sun May 06, 2007 2:57 pm
Hi All,
I have requirement where I need to send an email based on the record count of the file. If record count is 2 then I need to send an email...I am using below routine for word count of the file...While testing the routine the output is 2 but when I am using this routine in the sequencer with trigger return value=2, for the trigger link to email notification....it is not working...
How can I do this?I do not want to use UNIX script.....
Thanks in Advance...
I have requirement where I need to send an email based on the record count of the file. If record count is 2 then I need to send an email...I am using below routine for word count of the file...While testing the routine the output is 2 but when I am using this routine in the sequencer with trigger return value=2, for the trigger link to email notification....it is not working...
Code: Select all
InputArg=" cat /artl/Ascential/DataStage/Projects/Development/":ARG1:"|wc -l"
Call DSExecute("UNIX", InputArg, Output, SystemReturnCode)
Ans= Output
ReturnValue=Ans
Thanks in Advance...