Nutangujar
750 pts. | Sep 28 2009 3:47PM GMT
well…just realized that the error is generated by program when i try to execute
*mdy move date1 date2
my screen field for date is of data type ‘date’ i want to display blanks when the date is 01/01/0001
can i achieve this without changing the screen field type?
Graybeard52
2435 pts. | Sep 28 2009 10:48PM GMT
You have a couple of choices. One is to test the date1 field for D’0001-01-01″ and seton an indicator to make the field non-dosplay when this happens. Another option is to define the screen field as a char or numeric field. Then you could yo something like this.
If date1 = *loval
eval date 2= *blanks
else
eval date2 = %char(date1:*mdy)
endif






