Conditionally Autofilliing system date if date is not there in field
Posted: August 17th, 2024, 3:53 am
Hello and Greetings
I have a data entry application where date of survey was as a last item. we were getting it auto filled as system date. Due to some incorrect skip pattern, date were filled for some cases but some cases got skipped for this date field and as a result, we are finding that date blank in the data file.
After correcting the logic, for all future cases, system date is being filled/will be filled without any problem.
But
Now we have got some cases where we have dates missing.
For these missing date cases, we want to fill system date, conditionally if no date is there (Due to incorrect skip), then date should capture system date and if date is already there, no change required.
How should i do that
I was trying like below but did not work. I simply want date to be system date where there is no date filled previously in data file.
Proc date
Preproc
if date=missing // Due to incorrect skip , this is found blank date
date=sysdate("DDMMYYYY");
Noinput;
endif;
But this is not working, This is changing previously filled date also. how should i modify logic, based on my requirement in app.
Thanks and Regards
I have a data entry application where date of survey was as a last item. we were getting it auto filled as system date. Due to some incorrect skip pattern, date were filled for some cases but some cases got skipped for this date field and as a result, we are finding that date blank in the data file.
After correcting the logic, for all future cases, system date is being filled/will be filled without any problem.
But
Now we have got some cases where we have dates missing.
For these missing date cases, we want to fill system date, conditionally if no date is there (Due to incorrect skip), then date should capture system date and if date is already there, no change required.
How should i do that
I was trying like below but did not work. I simply want date to be system date where there is no date filled previously in data file.
Proc date
Preproc
if date=missing // Due to incorrect skip , this is found blank date
date=sysdate("DDMMYYYY");
Noinput;
endif;
But this is not working, This is changing previously filled date also. how should i modify logic, based on my requirement in app.
Thanks and Regards