Hi All the following line of code do while .not. eof() .and. mtSTA_CODE <= mtEND_CODE includes the blank date fields as well - how do I exclude these...? -- Donald