I am on a IBM AIX RS6000 UNIX SYSTEM trying to create a mass compile script.
I am trying to read a file called COBLIST with the following data in it:
abc.pco
123.pco
xyz.pco
I want to read each of these records.
Here is the script that I have but am having problems finding out what's wrong with it.
while true
do
read COBLIST
COBFILE=`echo $COBLIST | cut -d. -f1`
COBERR=$COBFILE".err"
echo "STEP 2-PreCompile PRO*Cobol program "
make -f /usr/local/bin/procob.mk build COBS=$COBFILE.cob EXE=$COBFILE 2>$COBERR
if [ -s "$COBERR" ]
then
echo "/n/nCompiled with Errors/n/n"
else
rm $COBERR
fi
if [ -z "$COBLIST" ]
then
break
fi
#echo $COBFILE>coblist
done
#END OF SCRIPT
Any help is greatly appreciated!
Thanks Greg
I am trying to read a file called COBLIST with the following data in it:
abc.pco
123.pco
xyz.pco
I want to read each of these records.
Here is the script that I have but am having problems finding out what's wrong with it.
while true
do
read COBLIST
COBFILE=`echo $COBLIST | cut -d. -f1`
COBERR=$COBFILE".err"
echo "STEP 2-PreCompile PRO*Cobol program "
make -f /usr/local/bin/procob.mk build COBS=$COBFILE.cob EXE=$COBFILE 2>$COBERR
if [ -s "$COBERR" ]
then
echo "/n/nCompiled with Errors/n/n"
else
rm $COBERR
fi
if [ -z "$COBLIST" ]
then
break
fi
#echo $COBFILE>coblist
done
#END OF SCRIPT
Any help is greatly appreciated!
Thanks Greg