Initial Release
A utility using IRIS NativeAPI to View, Copy, and Merge Globals
This code runs rather slowly and creates a lot of network traffic.
!! There is no need for any additional code on the source server !!
Background:
As $QUERY is not supported by Native API it is a rather long and
boring workaround with the functions IsDefined (aka $DATA) and
GetNext (aka $ORDER) to examine all Global nodes with value
and passing the structural nodes.
You have to provide
First, you make a connection to the target SuperServer Port
do ##class(nacl.Client).Connect("192.168.0.99",41773)
Do ##class(nacl.GVC).Connect(serverIP,serverPORT,namespace,username,password) Do ##class(nacl.GVC).View(globalname,startsubscript,stopstcsript) Do ##class(nacl.GVC).Copy(globalname,startsubscript,stopstcsript,targetname)
Copy writes a View of the created output.
Make sure you have git and Docker desktop installed.
On your target server, you need to install
https://github.com/rcemper/native-api-command-line-extension
Clone/git pull the repo into any local directory
git https://github.com/rcemper/native-api-command-line-client
Run the IRIS container with your project:
docker-compose up -d --build
docker-compose exec iris iris session iris
Copy writes a View of the created output.