you should use the PRINT statement instead of WRITE.