Purpose
The list_job_scripts command lists all Teradata ARC scripts that were created for the job. To modify job behavior, edit the scripts, then use the save_job_scripts command to save changes to the daemon. Ensure the accuracy of the edited scripts before saving them. The daemon does not verify changes.
If you specify the original job name for the list_job_scripts command, the scripts for the original job definition are listed. If you specify the name of a job instance in which job variables were modified at runtime, the scripts associated with the modified job definition are listed.
Parameters
See Parameter Order.
- broker.port
- [Optional] You may enter a broker port to overwrite the default value specified in the commandline.properties file in order to connect to a different ActiveMQ server (and therefore a different daemon) at runtime.
- broker.url
- [Optional] You may enter a broker URL to overwrite the default value specified in the commandline.properties file in order to connect to a different ActiveMQ server (and therefore a different daemon) at runtime.
- dir
- [Optional] Output directory for the scripts file. The directory will be created if one does not exist.
- filename
- [Optional] Output file name for the scripts file. Existing file name will be overwritten.
- job_name
- Name of the job to be edited.
- security_password
- [Optional] Password for the super user or authorized Viewpoint user.
- security_password_encrypted
- [Optional] Encrypted password for the super user.
- security_username
- [Optional] User ID of the super user or authorized Viewpoint user. The user ID of the super user is dmcl_admin and cannot be changed.
Usage Notes
Following is an example of the output when the list_job_scripts command is used:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <dmSaveJobScript> <job_name>job1</job_name> <dir>/home/datamover/scripts</dir> <plan> <step> <task id="3"> <timestamp>Fri Jul 10 21:52:55 PDT 2009</timestamp> <archive_script>archiveScript_3</archive_script> <copy_script>copyScript_3</copy_script> </task> </step> </plan> </dmSaveJobScript>
XML File Example
For the list_job_scripts command, type datamove list_job_scripts -f parameters.xml.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <dmListJobScript> <job_name>job1</job_name> <dir>/home/datamover/scripts</dir> <filename>job1_script.xml</filename> </dmListJobScript>