Redeploying a SAS® Data Integration Studio job using "DeployJobs" requires use of the "-object" parameter with "Job" instead of "Deployed job"


When you work with an interactive batch deployment (the user interface) in SAS Data Integration Studio, you can redeploy the Job metadata object as well as the Deployed job metadata object. However, when you use the DeployJobs.exe command, you can reference only the Job metadata object. If both objects reside in the same metadata server folder, there's no difference in the command execution. But, when the objects are created in different folders, you must reference the proper object. See the following example:

In this example, the 01_job subfolder contains the Job object and the 02_deployedjob subfolder contains the Deployed job object. In this scenario, the proper redeploy command is as follows:

C:\sas\sashome\SASDataIntegrationStudioServerJARs\4.8\DeployJobs -host myserver.mydomain -port 8561 –profile "sasdemo" –deploytype redeploy –objects "/7613708551/01_job/TestDepJob" –folder "/7613708551/02_deployedjob" –sourcedir "C:\7613708551" –deploymentdir "C:\sas\config\Lev1\SASApp\SASEnvironment\SASCode\Jobs" –metarepository Foundation –appservername "SASApp" –servermachine "myserver.mydomain" –serverport 8591 –batchserver "SASApp – SAS DATA Step Batch Server" –log "C:\7613708551\deployjobs.log"

When you use '"–objects "/7613708551/02_deployedjob/TestDepJob"' instead of the above command, no error occurs. But, the source code for the job is not written to the deployment directory.