Hi Alexey,

Thank you for the suggestion- using the time works well too! I was simply trying to provide an example. I'll be posting another article with my code shortly, and I truly look forward to any further feedback you might have.

We can also use this way.

 Set ^LOG("xUpload",+$Horolog,patId,$ I(^LOG("xUpload",+$Horolog, patId))=status_"^"_SQLCODE_"^"_$Get(%msg)