%mdlmgr_AddVersion Macro

Adds a version to a project.

Note: The Name=version-name argument was deprecated with the release of SAS Model Manager 13.1. It is no longer supported in SAS Model Manager 13.1 and later. If you have migrated from a previous release the value of the version name appears in the Description field. You must remove this argument from your existing macro code to avoid errors. When you use the %mdlmgr_AddProject( ) macro to create a new project, an initial version is automatically created within the new project. In order to add a new version to an existing project, use the %mdlmgr_AddVersion( ) macro.

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
Last updated: February 14, 2017