Hi All,

I need urgent help,

I want to export the values from Global to CSV file.

Values are in global are :

^Global1(1)="1,2,3,4"
^Global1(2)="5,6,7,8"
.
.
.
^Global1(n)="n,n,n,n"

I want output in CSV File as:
1,2,3,4
5,6,7,8
.
.
.
n,n,n,n

I made a class:

ClassMethod ExportNewSchemaGlobals(pFile)
{
    Set ary("^Global1")=""
    Set pFile = "C:/Test.csv"
      
    Set ary = ##class(%Library.Global).Export(,.ary,pFile)
}

But its not giving expected Output.

Confused Developer · May 23, 2017 go to post

Yes that was typo.. Sorry about that

We have different servers(different IP) where we have ensemble healthshare installed. 

And we have a common package LIB which has been mapped through package mapping. 

I want a table where I want to insert rows(which I will be fetching  from each server.)

Not sure which approach I should follow.