User bio
404 bio not found
Member since Feb 4, 2016
Posts:
Aaron has not published any posts yet.
Replies:

Hello,

This isn't the question you asked, but since you mentioned $ZU functions, please bear in mind that:

  • $ZU functions are deprecated
  • $ZU functions are no longer documented
  • Users are encouraged to replace $ZU functions with methods and properties in InterSystems class libraries that perform the equivalent actions

Your specific example, $ZU(67,15,$j), is replaced by ##class(%SYSTEM.Process).ClientIPAddress($j).

Best,

Aaron

Hello Bob,

I believe something similar to the following is what others have been suggesting.

open file:("WNS"):3
if ('$test) {  write !,"Failed to open "_file  quit  }
use file
do ALL^%SS
close file
quit

This works for me.  Is this what you did?  Is it not working for you?

Note that, unlike my minimal example, your code should of course include proper error trapping/handling.

Hope that helps,

Aaron

Certifications & Credly badges:
Aaron has no Certifications & Credly badges yet.
Global Masters badges:
Aaron has no Global Masters badges yet.
Followers:
Aaron has no followers yet.
Following:
Aaron has not followed anybody yet.