Data Studio CLI (TedCLI.bat)

The Data Studio CLI executes the TED specifications including ConverterPro, ComparePro, Related Extract, Related Loader, and Execution Suites. The specifications will have to be created using the relevant application client available in the File-AID/EX perspective of Workbench and the specifications should be saved and made available in any of the shared repositories. Moreover, the shared repository should be configured on a standalone communication manager for using it with TED CLI. Further, to execute the specifications via the TED CLI, standalone execution server needs to be installed, if not already available.

Important

The embedded communication manager and execution server that is available with the  Workbench TED feature cannot be used for executing TED CLI.

The standalone communication manager is installed along with the File-AID Services, and can be configured in Workbench for Eclipse preferences, under the TED section for use with the client. Once configured and set as current, the Repository Management utility shall be used to configure the shared repository on to the current communication manager. Please refer to the TED install guide for more information.

Usage

Executing the specification should be done with the TedCLI.bat file. The general syntax for using the TedCLI.bat is:

TedCLI.bat -cmd=<command> options

where the command is:

execute - Executes the specification from the repository specified.

Important

Many of the parameters available for the 'execute' command can also be specified via the execution context file, these are marked accordingly in the Execute Command parameters table. For more information about the execution context, refer to the following table.

Execute Command parameters

Parameter/Option    AbbrDescriptionContext (-able)?    Required?
-repository -rThe repository name where the specification is present.
Yes
-results-repository-rrThe results repository where ComparePro execution results will be stored. Applicable only to ComparePro specification. Defaults to main repository if not specified.

-specification-sThe results repository where ComparePro execution results will be stored. Applicable only to ComparePro specification. Defaults to main repository if not specified.
Yes, if specification-list is not provided
-specification-type-stThe type of the specification that is to be executed. compare, convert, extract, load, exsuite.
Yes, if specification-list is not provided
-specification-list-slSpecification Name and Type list each separated by space within quotes, if multiple specifications have to be executed in series. If this argument is specified, the specification and specification-type arguments will not be used.

-execution-context-ecThe name or absolute path to the execution context file. The execution context file can supply some of the arguments that can also be passed with the execute command. If a value of a certain parameter is present in the context file and is also passed as an argument, the value passed with the command will take precedence. To know which all parameters can be specified via the context file, view the template provided at <Install_Path>/WorkbenchCLI/EnterpriseData namely executioncontext_template.properties. Multiple execution contexts can be created as required, by copying the template.

-comm-manager-cmThe standalone communication manager to be used, where the repository is configured.YesYes
-comm-manager-port-cmpThe standalone communication manager's port.YesYes
-ces-uri-ces

The CES uri to be used for license validation.

YesYes
-use-cloud-ucd

Flag to denote which type of CES is to be used, a local CES or the BMC's cloud CES.

YesYes
-ces-cust-no-cno

The customer number in case cloud CES is being used.

YesYes for cloud CES
-ces-site-id-sid

The site ID in case cloud CES is being used.

YesYes for cloud CES
-exit-on-failure-eofDirective to initiate exit on encountering specification execution failure in case of executing multiple specifications. This optional field is defaulted to true. If set to false, will continue executing other specifications in the provided list.

-execution-timeout-tThe execution timeout in seconds, if needs to be set to a value other than 20 seconds.Yes
-execution-server-esThe standalone execution server where EX specifications should be executed.YesYes for EX Specification
-execution-server-port-espThe standalone execution server's port to be used for communication.YesYes for EX Specification
-execution-host-ehThe execution host where RDX specifications should be executed.YesYes for RDX Specifications
-executor-host-port-ehpThe execution host's port to be used for communication.YesYes for RDX Specifications
-hci-userid-hidThe HCI connection userid. (For RDX execution only)
Yes for RDX Specifications
-hci-password-hpwThe HCI connection password. (For RDX execution only).
Yes for RDX Specifications
-certificate-certificateBase64 encoded string content of the certificate required to establish HCI connection with certificate based authentication. Takes precedence over keystore based authentication if both supplied. (For RDX execution only)YesYes for RDX Specifications
-keystore-keystoreAbsolute path to keystore file required for establishing HCI connection with keystore based authentication. (For RDX execution only)YesYes for RDX Specifications
-certificateAlias-certificateAlias    Alias of the certificate to be used in the supplied keystore for keystore based authentication. (For RDX execution only)YesYes for RDX Specifications
-keystorePassword-keystorePasswordThe password for accessing the provided keystore if applicable, for keystore based authentication. (For RDX execution only)YesYes for RDX Specifications
-ccsid-ccsThe CCSID to be used in the execution host connection, the default is 1047.Yes
-jcl-jobcard1-j1The JCL Jobcard's line 1. (For RDX execution only)Yes
-jcl-jobcard2-j2The JCL Jobcard's line 2. (For RDX execution only)Yes
-jcl-jobcard3-j3The JCL Jobcard's line 3. (For RDX execution only)Yes
-jcl-jobcard4-j4The JCL Jobcard's line 4. (For RDX execution only)Yes
-jcl-jobcard5-j5The JCL Jobcard's line 5. (For RDX execution only)Yes
-dataset-hlq-hlqThe data set high level qualifier to be used. (For RDX execution only)Yes
-temp-dataset-prefix-pxThe prefix to be used for temporary datasets. (For RDX execution only)Yes
-temp-dataset-suffix-sxThe suffix to be used for temporary datasets. (For RDX execution only)Yes
-fadebug-fdbThe dataprivacy override FADEBUG, that defines the logging information for the File-AID Rules Engine. (For RDX Extract execution only)Yes
-faexpath-fxpThe dataprivacy override FAEXPATH, that defines the path for File-AID Rules Engine location. (For RDX Extract execution only)Yes
-faipaddr-fipThe dataprivacy override FAIPADDR, that provides the File-AID Services IP address and execution port. (For RDX Extract execution only)Yes
-fajopts-fjoThe dataprivacy override FAJOPTS, that defines the Java options for the File-AID Rules Engine. (For RDX Extract execution only)Yes
-fajpath-fjpThe dataprivacy override FAJAPTH, that defines the z/OS UNIX path for the Java Virtual Machine. (For RDX Extract execution only)Yes

Sample usage

Help on execute command

TedCLI.bat -cmd execute -help

Will print the help text for execute command.

Executing an EX Extract specification from the repository

TedCLI.bat -cmd execute -repository=TestRepo -specification=TestExExtractSpec -specificationtype=EXTRACT -comm-mgr=remote-comm-manager-machine -comm-mgr-port=4901 -execution-server=server-machine -execution-server-port=4900 -ces-uri=http://test-ces-host:2020/compuware -use-cloud=false

Executes the TestSpec EX Extract from TestRepo repository configured on the given communication manager on the provided execution server, while checking for license on the provided ces namely test-ces-host.

Executing an ComparePro specification from the repository

TedCLI.bat -cmd=execute -repository=SpecRepository -specification=TestCompareProSpec -specificationtype=Compare -results-repository=ResultsRepo -execution-context=TestExecutionContext.properties

Executes a ComparePro specification. Makes use of the specified results repository to store the compare results instead of the default SpecRepository. Also, this execution utilizes the values specified in the execution context for the rest of the required parameters.

Executing an RDX specification from the repository using password credentials

TedCLI.bat -cmd execute -repository TestRepo -specification TestRDXExtractSpec -specificationtype EXTRACT -execution-host mfhost -execution-host-port 16196 -execution-context TestExecutionContext.properties dataset-hlq=faexrec -hid=myuserid -hpw=mypassword

Executes the TestRDXExtractSpec RDX Extract from TestRepo repository. The job is submitted to the mfhost:16196 defined via the execution host and port params. Some of the values are specified in the execution context file 'TestExecutionContext.properties' defined, while some of the arguments like dataset-hlq defined in the context have been overridden with the value passed as the argument.

Executing an RDX specification from the repository using certificate

TedCLI.bat -cmd execute -repository TestRepo -specification TestRDXExtractSpec -specificationtype EXTRACT -execution-host mfhost -execution-host-port 16196 -execution-context TestExecutionContext.properties dataset-hlq=faexrec -certificate base64EncodedCERTcontent

Executing an RDX specification from the repository using certificate from a keystore

TedCLI.bat -cmd execute -repository TestRepo -specification TestRDXExtractSpec -specificationtype EXTRACT -execution-host mfhost -execution-host-port 16196 -execution-context TestExecutionContext.properties dataset-hlq=faexrec -keystore c:/path/mykeystore -certificateAlias myCertName -keystorePassword mykeystrpwd

Executing an RDX specification from the repository using certificate from windows cert store

TedCLI.bat -cmd execute -repository TestRepo -specification TestRDXExtractSpec -specificationtype EXTRACT -execution-host mfhost -execution-host-port 16196 -execution-context TestExecutionContext.properties dataset-hlq=faexrec -keystore Windows-MY -certificateAlias myCertName 

Executing multiple specifications in a single command from the repository

TedCLI.bat -cmd execute -repository TestRepo -specification-list "ExExtractSpec extract convspec convert loadspec load" -exit-on-failure false -execution-timeout 20

Executes the three specifications of type extract, converterPro and a loader in sequence. Since the optional exit-on-failure flag is set to false, if the execution of a specification fails, it will continue executing the rest of the specifications in the list, default behavior is true if not specified. The execution timeout has been set to 30 seconds in this example instead of the default 20 seconds.


Was this page helpful? Yes No Submitting... Thank you

Comments