c:\program
files\sashome\SASDataIntegrationStudioServerJars\4.8
.
The tool is named DeployJobs.exe. You should run the command-line
deployment tool in the Microsoft Windows command window or in the
interface appropriate to your operating system.
specifies connection options for the SAS Metadata Server from which the package is being deployed. See Specify Connection Options.
Requirement | Required. |
specifies the type of deployment. The following values are valid:
DEPLOY | deploys jobs that have not already been deployed |
REDEPLOY | redeploys jobs that have already been deployed. Source code is regenerated and stored. |
specifies the locations of the jobs that are to be deployed. You can specify any number of locations. Leave a space between each location. If a location includes spaces, then enclose the location in quotation marks.
SAS
Folders
node. Therefore, the first folder that you
specify in a location must be located directly beneath SAS
Folders
.
/User Folders/
user-name/My
Folder
or /Users/
user-name/My
Folder
) rather than the shortcut (/My Folder
). Note
that the name of the parent folder for user folders varies depending
on the SAS release in which the folders were created.
/Shared Data/Orion
Star Data
. This example also deploys the Sales by
Customer Type job, which is located in /Shared Reports/Orion
Star Reports
.
Requirement | Required. |
the directory to store
generated sas code. These files are deployed to the –deploymentdir
location.
Requirement | Required. |
the deployment directory for the files containing the job’s code
Requirement | Required for a deploy type. Optional for a redeploy. |
the name of the metadata repository (for example, “Foundation”)
Requirement | Required. |
the metadata ID of the SAS Application Server (for example, “A57CMFYM.AS000002”)
Requirement | Optional. |
the name of ServerContext
object (often"SASApp"). You can specify either -metaserverid
or -appservername
.
If both are specified, -metaserverid
is
used.
Requirement | Optional. |
-metaserverid
and -appservername
arguments
are both optional. However, you must specify one of these arguments
whenever you run the command-line batch deployment tool. Do not specify
both of these arguments for a single run.
the name of the machine that hosts the SAS Application Server
Requirement | Required for a deploy type. Optional for a redeploy. |
the port for the SAS Application Server
Requirement | Required for a deploy type. Optional for a redeploy. |
the user ID to connect to the SAS Application Server
Requirement | Optional. If not supplied, the user ID specified for the SAS Metadata Server is used. |
the password for the user ID used to connect to the SAS Application Server
Requirement | Optional. If not supplied, the password specified for the SAS Metadata Server is used. |
the name of the batch server component (for example, “SASApp – SAS DATA Step Batch Server”)
Requirement | Required for a deploy type. Optional for a redeploy. |
the folder location for the deployed job objects. If you specify a folder that does
not exist with the -folder
argument, then
the deployed jobs are located in the /Shared Data
folder.
Requirement | Optional. If not specified for a deploy, deployed jobs will be created in the same location as the job object. If not specified for a redeploy, deployed jobs will be in the same folder where they already exist. |
specifies whether the
search for jobs should be recursive, starting at the folder specified
with –objects
. This argument
has no value. If specified, the search is recursive through child
folders. If not specified, the search is only in the specified folder.
Requirement | Optional. |
specifies that jobs are processed only if they have been modified after the specified date
Requirement | Optional. See Specify Dates. |
when –true
is
specified, the authdomain is generated by the generated deployed code.
When –false
is specified, the
user name and password are generated. When no value is specified,
the authdomain is generated.
-recursive
argument
does not take a value. The other arguments must take an appropriate
value.
Option
|
Description
|
---|---|
—host host-name
|
Identifies the host machine for the metadata server. This option is required if the -profile option is not set.
|
-port port
|
Specifies the port on which the metadata server runs. This option is required if the
-profile option is not set.
|
-user user-ID
|
Specifies the user ID
of the connecting user. This option is required if the
-profile option is not set.
|
-password password
|
Specifies the password
of the connecting user. This option is required if the -profile option is not set.
|
-profile profile
|
Specifies the name of the connection profile that is to be used to connect to the
metadata server. The connection profile must exist on the computer where the command
is executed.
You can specify any connection profile that has been created for use with client applications
such as SAS Management Console, SAS Data Integration Studio, and SAS OLAP Cube Studio. When you open one of these
applications, the available connection profiles are displayed in the drop-down box
in the Connect Profile dialog
box.
This option can be provided
in place of -host, -port, -user, and -password.
|
–since
in
a command, you can specify an absolute date (or an absolute date and
time). Use one of the following formats:
–since
in
a command, you can specify a date relative to the current date. To
specify a relative date, use one of the following values:
"Current
day of last year"
is October 12, 2012. February
29 is replaced with February 28.
"Current
day of last month
" is September 12, 2013. If
the previous month has fewer days, the date is adjusted downward as
necessary. For example, if the current date is October 31, 2013, then "Current
day of last month"
is September 30, 2013.
"Current day of last week"
is
October 5, 2013.
n
days ago"
n
days
previous to the current date. When specifying this option, replace n
with
an integer.
DeployJobs –profile “My Profile” –deploytype deploy –objects “/Shared
Data/My Jobs/TransformJob” –sourcedir “c:\Source
Data\Jobs” –deploymentdir “C:\SAS\Config\Lev1\SASApp\SASEnvironment\SASCode\Jobs” –metarepository Foundation –metaserverid A57CMFYM.AS000002 –servermachine “appserver
machine name” –serverport 8591 –serverusername “user-id” –serverpassword “password” –batchserver “SASApp – SAS DATA Step Batch Server” –folder “Jobs/Deployed
Jobs”
/Shared Data/My Jobs
.
C:\SAS\Config\Lev1\SASApp\SASEnvironment\SASCode\Jobs
.
Jobs/Deployed Jobs
.
\”
.
This coding is illustrated in the following sample argument: -objects
\"/Shared Data/DIS Testing/cmd/BVT_cmd\"
.