- Log in to post comments
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
- Log in to post comments
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
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
- Log in to post comments
Certifications & Credly badges:
Aaron has no Certifications & Credly badges yet.
Followers:
Aaron has no followers yet.
Following:
Aaron has not followed anybody yet.
$ZU functions are deprecated and no longer documented, and users are encouraged to replace $ZU functions with methods and properties in InterSystems class libraries that perform the equivalent actions.
In this case, $zu(96,14) is replaced by ##class(%Library.Device).GetType()