title: Executing SQL statement in ASEISQL with UNIX scripts
body: <p>Since I am new to unix scripting. I am running a SQL statement in ASE ISQL, and if SQL statement gives some result then I need to mail that result to a particular users. And if SQL is not returning any result then mail should not be sent.<br>
  The Sample Script I have wriiten is:</p>
  
  <pre><code>#!/bin/ksh
  isql -U$DBO -S$DSQUERY -D$DBNAME -P$PASSWORD &lt;&lt; END 
  go
  select * from 'Table'
  go
  if (@@rowcount !=0)
  
  mailx -s "Hello" XYZ@gmail.com 
  
  
  END
  </code></pre>
  
  <p>Please let me know where I am going wrong? </p>