In order to automate our release process, I’m attempting to generate a template for SAS stored processes which are used as part of our production system.
The process we are attempting is as follows:
- Export a stored process from SAS Management Console which generates a *.spk package.
- Rename the .spk to .zip and uncompress this file and edit the contents directly including “ConnectionMapping.xml”, “DeployMap.xml”, and “TransportMetadata”. I’m doing this noting that ConnectionMapping and DeployMap both say <!--IMPORTANT: This file should not be edited.-->. However, I am only editing the folder name of the stored process from ‘Analytics’ to ‘@AnalyticsEnvironment’
- Compress these edited files to a *.zip and rename this back into an *.spk package
- Import the package back into the SAS Console.
However, this gives me the following Import Error: “No package metadata.”
Is there a better way to do this? If not, how can I resolve this error?
My SAS and OS information are as follows:
Product Name: Office Analytics
SAS software release: SAS 9.4M2
Operating system: Windows Server 2012 R2