Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This example shows template programming code specified for an analysis method defined in the methods attribute of the reporting event (lines 14-41). In this example, there are 3 parameters associated with the template programming code, each containing a reference to a metadata element in the valueSource attribute. The metadata references are defined relative to the analysis using the method, so any unqualified metadata element names name (e.g. "dataset") is a reference to an attribute of the analysis using the method. The valueSource values for 2 of the parameters are in the format orderedGroupings[x].groupingId.groupingVariable which indicates (according to the sponsor's applied syntax) "the value of the groupingVariable attribute of the instance of the (subject or data) grouping factor referenced in the groupingId attribute of an instance of the OrderedGroupingFactor class, which is listed in the orderedGroupings attribute of the analysis and whose order value is x". The template programming statements (for which the computer language is "SAS Version 9.4", as specified in the context attribute) contain replacement parameter references corresponding with the 3 template code parameters. The parameter references are formatted to facilitate the sponsor's Python-based implementation, which involved copying the template programming code to the analysis while replacing the replacement parameter references with the values obtained from the metadata references in order to create analysis-specific programming statements that are ready for execution. 

...