Problem Note 68566: A DeployJobs command with the REDEPLOY option creates a new job with the name of the original job, even though you entered a new Deployed Job Name
When you use the DeployJobs command in the CLI to redeploy a job that was initially manually deployed under a different name, the tool causes the job to be re-created under the default name. That results in two files for the job residing in the deployment directory. The scheduler still uses the initially created job file and not the newly deployed one.
For example, you schedule the job TestAlpha for deployment, but you enter "TestBeta" in the Deployed Job Name field, which creates a new file, TestBeta.sas. You then redeploy TestBeta with this command:
DeployJobs -recursive-deploytype REDEPLOY ...
Here is the output from the command:
INFO Redploying jobs associated with Job 'TestAlpha' in folder '/projects/jobs'.
INFO Deployed job 'TestBeta' in '/projects/jobs' is being processed.
INFO Deployed Job 'TestBeta' was successfully redeployed.
The output indicates that the new name is applied. The deployment directory contains files with two different names:
- TestBeta.sas (job that you initially deployed)
- TestAlpha.sas (new file, but with the default job name)
The workaround is to use different folder locations in the command for both the -deploymentdir and the -sourcedir options. That prevents the source code file from being re-created with the default job name.
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | SAS Data Integration Studio | Microsoft® Windows® for x64 | 4.904 | | 9.4 TS1M6 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2021-11-05 11:12:52 |
Date Created: | 2021-11-03 03:31:05 |