Execute Command Stage
Posted: Tue Oct 07, 2008 12:52 am
Hello,
I have a script, test.sh
========
#! /bin/ksh
if [-s $1]
then echo 0
else echo 1
fi
========
When i execute it I'm passing parameter (a filename).
> test.sh filename.txt
Everything is fine, the script returns 0 if the file has any data and vice versa.
When I call the same script in DataStage in the execute command stage,
I'm always getting the output as 1(From log)
Any suggestions.
Thank You -gsym
I have a script, test.sh
========
#! /bin/ksh
if [-s $1]
then echo 0
else echo 1
fi
========
When i execute it I'm passing parameter (a filename).
> test.sh filename.txt
Everything is fine, the script returns 0 if the file has any data and vice versa.
When I call the same script in DataStage in the execute command stage,
I'm always getting the output as 1(From log)
Any suggestions.
Thank You -gsym