User bio
404 bio not found
Member since May 4, 2017
Replies:

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.

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