When you associate a code file with a Microsoft Word document, StatTag adds two entries to the Document Variables collection.
The reason for two different metadata variables is a side-effect of the implementation of StatTag. Originally, the "StatTag Configuration" variable was created, but as a JSON array could not be extended with other values. To address this, the "StatTag Metadata" variable was added in v3.1.
The "StatTag Configuration" variable is a JSON serialized array of CodeFile entries, stored as a string.
Example:
[
{
"StatisticalPackage" : "SAS",
"FilePath":"C:\Data\Analysis.sas",
"LastCached":null
}
]
More information about each field is available in the CodeFile source code.
If there are no code files associated with a Word document, the variable will not be set by StatTag (or, if it is set, it will be removed).
The "StatTag Metadata" variable is a serialized JSON DocumentMetadata object, also stored as a string.
Example:
[
{
"StatTagVersion": "StatTag v3.1.0",
"RepresentMissingValues": "StatPackageDefault",
"CustomMissingValue": "[X]",
"MetadataFormatVersion": "1.0.0",
"TagFormatVersion": "1.0.0"
}
]