works fine on sql2000.
SENDEMAIL:
DECLARE @MailSubjectVARCHAR(1000)
SET @MailSubject = (@var1 +' '+ convert(varchar,datepart(mm,getdate())) + '/' + convert(varchar,datepart(d,getdate())) + ' ' + right(convert (char(19), getdate(), 100), 7))
IF @EMAILADDRESS IS NULL
...