wait for file activity
Posted: Sun Jul 17, 2005 10:51 pm
Hello,
I have a strange problem with respect to the wait for file activity:
i am trying to write to a sequential file from a table giving the status of the job sucessfully run or not,
i put the constraint on the trnsformer that if the count(status)=0 write to the file with single column as "sucessful"which means that if the count of "N" (i.e NO) = 0 then it writes to the file at a specified location (it creates a dat file)
but when the count is > 0 then it should not write to the file, and it should not generate a file, but to my surprise the job is creating a 0kb file which the wait for file activity takes as present and the runs the next step.
If it were to be in unix i would have used test-s command to check the size of file>0, but i am working on NT.
Is there any DOS commond to check the size of the file greater than 0kb and to delete the file?
or is there a better way to do this.
Thanks
Satya
I have a strange problem with respect to the wait for file activity:
i am trying to write to a sequential file from a table giving the status of the job sucessfully run or not,
i put the constraint on the trnsformer that if the count(status)=0 write to the file with single column as "sucessful"which means that if the count of "N" (i.e NO) = 0 then it writes to the file at a specified location (it creates a dat file)
but when the count is > 0 then it should not write to the file, and it should not generate a file, but to my surprise the job is creating a 0kb file which the wait for file activity takes as present and the runs the next step.
If it were to be in unix i would have used test-s command to check the size of file>0, but i am working on NT.
Is there any DOS commond to check the size of the file greater than 0kb and to delete the file?
or is there a better way to do this.
Thanks
Satya