> Hey everyone...I am having a tough time with a shell script I am writing 

> for my BPXBATCH step. All I want to do is run one of two commands 
> depending on a variable that is passed to the script.
> 
> I have tried coding
> if [ "$pet" == "DOG" ] ; then
>     commands...
> else
>     other commands
> fi

Try like this:

pet=dog; 
if [ $pet -eq "dog" ]; then;
  echo "feed dog"; 
else 
  echo "feed cat"; 
fi; 

Kurt Quackenbush -- IBM, z/OS SMP/E and z/OSMF Software Management
Chuck Norris never uses CHECK when he applies PTFs.



----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to