I made few corrections in the script, and it worked fine...


1. I defined a temporary variable x to calculate the value of `$i + 1`, as it was not getting passed in echo and cat in the original script.
2. I replaced let with expr, as the autosys server of ous is not having the functionality of let.
Script pasted below:
*******************************************************
while [ $i -lt $split ]
do
#echo start $start and end $end
x=`expr $i + 1`
sed -n ''$start','$end'p' $dir/$filename >> $dir/$fldr/input.csv
cat $dir/$fldr/header.csv $dir/$fldr/input.csv >> $dir/$fldr/input_$x.csv
echo `date +%m%d%y_%T`--$dir/$fldr/input_$x.csv created >> $log
rm -f $dir/$fldr/input.csv
start=`expr $end + 1`
if [ $i -eq `expr $split - 2` ]; then
start=`expr $end + 1`
end=`expr $filecnt`
else
end=`expr $start + $flsize - 1`
fi
#cat input_`expr $i + 1`.csv
let "i=$i+1"
done
*******************************************************
I would like to clarify two thing on this regard:
1. Is it so that autosys is not able to calculate the parameter value at runtime. If so, what does Autosys scheduler do other than just scheduling the script.


2. Is it so that the autosys server, and shell script server should have same set of commands in their command list.


