if ($close_flag eq 'Y') {$cdate='SYSDATE';} else ### open call, set date to null ### {$cdate="''";} #pass a null string w/no quotes (that's a double-quote,single-quote, single-quote,double-quote)