I wouldn't recommend using ZU commands as they are deprecated so they are not guaranteed to always work.
Errors returned can occasionally be COS error codes, or they might boil down to OS error codes. It depends on the function; I don't know if there's a universal method that differentiates. I think you need to look at what you're calling. Often the class reference gives details on what error codes to expect.
In your particular case, referring to the %Library.File.CopyFile class reference:
"This method returns true if it succeeds and false otherwise. Pass return by reference to obtain the low level return value in case of errors which is the negative value of the operating system return code."
- Log in to post comments
First I used * to get the count: