Static Public Member Functions | |
_.Library.Status | Export (_.Library.String Nsp, _.Library.String GlobalList, _.Library.String FileName, _.Library.Integer OutputFormat, _.Library.String RecordFormat, _.Library.String qspec, _.Library.String Translation, _.Library.String Skipped, _.Library.String Header) |
Exports a list of globals GlobalList from a namespace Nsp to FileName using OutputFormat and RecordFormat. More... | |
_.Library.Status | GetFileHeaderString (_.Library.String Header, _.Library.String FileName, _.Library.Integer InputFormat, _.Library.Integer VariableLength) |
Get the Header string from an exported FileName file. More... | |
_.Library.Status | Import (_.Library.String Nsp, _.Library.String GlobalList, _.Library.String FileName, _.Library.Integer InputFormat, _.Library.Integer VariableLength, _.Library.String NewName) |
Imports a list of globals GlobalList from FileName into namespace Nsp assuming the file was written in InputFormat with record format of VariableLength. More... | |
|
static |
Exports a list of globals GlobalList from a namespace Nsp to FileName using OutputFormat and RecordFormat.
GlobalList is a comma delimited string or a local array, containing the names of the globals to export. A leading ^ and trailing type of .gbl on each global name are optional.
Block format (GOF - type 7) cannot be used to export subscript mapped globals or globals which are mapped to a database other than the default global database of the namespace. If a mapped global is included in the GlobalList, it will be dropped and a message that it well be skipped is displayed. Use ISM/ObjectScript format to export mapped globals.
OutputFormat has the following values:
1 - DTM format 3 - VAXDSM format 4 - DSM11 format 5 - ISM/ObjectScript format 6 - MSM format 7 - Block format (GOF)
RecordFormat has the following values:
V - Variable Length Records S - Stream Data
Header is the user supplied header to be written in the file. Avoid putting $C(13,10) or '~Format=' string in the header string. If it is not supplied or is a null string then the default header is:
'Export of nnn globals from Namespace AAA', the maximum length of the header string is 30000, if the passed header is longer than 30000 characters then it will be truncated.
For information on qSpec, see System Flags and Qualifiers.
|
static |
Get the Header string from an exported FileName file.
This method attempts to detect the file format from its header. If this fails, then the format parameters passed in are used.
Header is returned header string in the exported file.
FileName is the file name of the exported file.
InputFormat has the following values:
1 - DTM format 3 - VAXDSM format 4 - DSM11 format 5 - ISM/ObjectScript format 6 - MSM format 7 - Block format (GOF)
VariableLength non-zero if record format is variable length. The default value is 1.
|
static |
Imports a list of globals GlobalList from FileName into namespace Nsp assuming the file was written in InputFormat with record format of VariableLength.
The Import method attempts to detect the file format from its header. If this fails, then the format parameters passed in are used.
GlobalList is "*" to import all globals or it should contain a comma delimited string containing the names of the specific globals to import. A leading ^ and trailing type of .gbl around each name are optional.
GlobalList is ignored for non Block format (GOF) - Type #7 - files.
NewName is used to specify a new name for the global being imported. The input file must be type #7 (GOF - Block format) and the file must contain only a single global.
InputFormat has the following values:
1 - DTM format 3 - VAXDSM format 4 - DSM11 format 5 - ISM/ObjectScript format 6 - MSM format 7 - Block format (GOF)
VariableLength non-zero if record format is variable length. The default value is 1.