Hi evryone, this is a question from a progress test. I would like to know what is wrong with this code.
The following code snippet is used in another program when creating call_data records. There are several problems with this code that should be fixed. What's wrong with it, how bad is it, why and how would you fix the problems?
abc_data.sys_code = sv_sys_code.
abc_data.call_date = today.
abc_data.call_time = substring(string(time,"hh:mm:ss"),1,2)
+ substring(string(time,"hh:mm:ss"),4,2)
+ substring(string(time,"hh:mm:ss"),7,2).
The following code snippet is used in another program when creating call_data records. There are several problems with this code that should be fixed. What's wrong with it, how bad is it, why and how would you fix the problems?
abc_data.sys_code = sv_sys_code.
abc_data.call_date = today.
abc_data.call_time = substring(string(time,"hh:mm:ss"),1,2)
+ substring(string(time,"hh:mm:ss"),4,2)
+ substring(string(time,"hh:mm:ss"),7,2).