You need to modify the code as follows in order to find out whether or not Time=sessionendtime(0,1) condition is met.
If in PowerLanguage output you will see lines such as Yes :..., then the condition is met. So file is supposed to be created. If you won't see this line then the condition is not met and, therefore, file won't be created.
If so, we will need to see why the condition is not met. One possible cause is incorrect sessions.
Code: Select all
If Time=sessionendtime(0,1) then begin
Print(File("P:\Ari_Project\The ACD Project\Test File"),"Date",",",date);
Print("YES : Date: ", date, " Time: ", time);