%mdlmgr_AddVersion Macro

Adds a version to a project.

Syntax

Required Arguments

ParentId=parent-UUID-or-path

specifies the UUID of the project for which the version is to be created.

You can use &project-Id-variable that is set for the NewProjectId= argument in the %mdlmgr_AddProject( ) macro as the value of parent-UUID-or-path. For example, if NewProjectId=projectId, you can specify ParentId=&projectId.
The SAS Model Manager path is in the form
//ModelManagerDefaultRepo/MMRoot/folder-name/project-name

NewVersionId=version-Id-variable

specifies a variable name that is used to identify the new version.

SAS Model Manager creates a global macro variable, %version-Id-variable whose value is the version UUID or the path in the SAS Metadata Repository. You can use &version-Id-variable as the value of the FolderId= argument in the %mdlmgr_SetProperty( ) macro. For example, if you set NewVersionId=versionId, then you can specify FolderId=&versionId in the %mdlmgr_SetProperty( ) macro.
The version path is in this form:
//ModelManagerDefaultRepo/MMRoot/folder-name/project-name/version-name

Optional Arguments

Desc=description

specifies a description of the version.

Trace=Of | Off

specifies whether to supply verbose trace messages to the SAS log.

Default Off