Previous | Contents | Index |
It is recommended that resources be listed in the RESOURCE list using the editor as opposed to this method.
Type a list.The more command will type out the various list sections that can be associated with a job definition.
more [-options] job_name
Alternatetype -job [-options] job_name
general options:
-[no]log
-[no]confirm
-hostname = target_node
section identifiers:
commands (default)
-prerequisites
-initiates
-batchlog
-distribution
-notices
-holds_up
-activated_by
-resources [-check, -expanded, -full]
-runtimes[-repeat=n]
-endactions
-all
other features:
-env[=prefix_string,format] (csh)
#1 |
---|
Schedule> more incremental -prerequisites /pclark/incremental/prerequisites /pclark/inca /pclark/incb |
#2 |
---|
Schedule> more /demo/a/a1 -env sd == "@sys$login:sd" sd_0001 = "$ wait 'p1'" sd_0002 = "" sd_count = "2" |
-activated_by
The "ACTIVATED_BY list" is the list of jobs that activate the job being edited.-all
The ALL option selects that all the lists are to be type out. That is the command, prerequisite, initiates, distribution, notices, holds_up and activated_by lists.-batchlog
The batchlog qualifier types out the log file for the job. The location of the log file is designated by the log file location Use in conjunction with -tail=n to set the number of lines from the bottom of the log file to display, -head=n to set the number of lines from the top of the log file to display -maximum=n to set the maximum size of the log. The -file=n qualifier will designate the version of the log to be viewed, 0 equalling the curreent version and 1...n equalling each version previous.-commands
The COMMANDS option is the list of script commands that will be submitted in the form of a command file.-confirm
-noconfirm
CONFIRM requests that the user be prompted prior to any operation to verify that the selected entry is the correct one.-node=target_node
The hostname option specifies what hostname (either local or remote) you want the operation performed on. -hostname may be substituted for -node.-distribution
The "DISTRIBUTION list" is a list of PRINT commands to be issued. The idea is to provide a central mechanism for maintaining the how many, where to, and what printer information in a common location separate from the job command stream.endactions
The ENDACTIONS listing is a list of resource adjustments that are to be run upon completion of the job.-head
The head qualifier determines how many lines of the top of the log file will be generated using the -batchlog qualifier. The default is 20. It can also be used with -tail=n and -maximum=n .-holds_up
The "HOLDS_UP list" is a list of jobs that are held up by the job being edited.-initiates
The "INITIATES list" is the list of other jobs to start up when this one completes successfully.-log
-nolog
The LOG qualifier causes each completed operation to issue a note to the user.-maximum
The maximum qualifier determines the maximum number of lines a log file may be between the head and tail when using the -batchlog qualifier. Default is 2000. It can also be used with -head=n and -tail=n .-notices
The "NOTICES list" is a free format text entry that is used by the NOTIFICATION procedure to augment the various messages that it sends.-prerequisites
The "PREREQUISITES list" is the list of other jobs that must be successfully completed before this one is started.-runtimes[-repeat=n]
The RUNTIMES qualifier types out future run times for the job. The default number of run times is 5. To modify the number of run times displayed use the -repeat=n qualifier.-resources [-check, -expanded, -full]
Displays a list of generalized resources. The resource list is where the bulk of advanced job programming occurs. Here IF-THEN or SET statements are processed that can check or alter the value of a variable, supress a job run or cause a wait to occur.The CHECK qualifier performs a syntax check on the resource list to ensure the correct IF-THEN and set statements can take effect. The EXPANDED qualifier used in conjunction with CHECK will display expanded information about the current status of the resource list. The FULL qualifier will give a complete listing of resource information
-env[=prefix_string] or [=(prefix_string,format)]
The environmental variable option requests that all job information be output to a file containing a list of enviroment variables. Every field in the control record is listed in the file as an environment variable. The environment variable name is constructed by prefixing the field name with the provide string. If none is provided a default value of SC is used.The format defines the way that environmental variables are output. The default output specification is: "$export %s=\" %s\" "" (ksh), "$setenv %s=\" %s\" "" (csh) which produces the following format style.
SC_ACCOUNT = "DEVELOPM"Alternate output styles may be created by changing the format field.
-tail
The tail qualifier determines how many lines of the bottom of the log file will be generated using the -batchlog qualifier. The default is 40. It can also be used with -head=n and -maximum=n .
Rename a job.The mv command will change the name of a scheduled job definition. All references to a job are also revised to point to this new job definition. It is possible to rename across directories.
mv [-options] old_job_name new_job_name
Alternaterename -job [-options] old_job_name new_job_name
general options:
-[no]log
-[no]confirm
-node = target_node
#1 |
---|
Schedule> mv test daily_incremental -log Renamed /ajackson/test to /ajackson/daily_incremental |
-confirm
-noconfirm
CONFIRM requests that the user be prompted prior to any operation to verify that the selected entry is the correct one.-node=target_node
The hostname option specifies what hostname (either local or remote) you want the operation performed on. -hostname may be substituted for -node.-log
-nolog
The LOG qualifier causes each completed operation to issue a note to the user.
Rebuild the job-to-job connections.rebjob examines job-to-job connections and verifies and corrects any that are broken or missing. The links that are examined are the PREREQUISITES list, INITIATES list, ACTIVATED_BY list, and HOLDS_UP list.
The INITIATES list and the ACTIVATED_BY list are the inverse of one another. When one list is edited the other list is updated automatically. The same relationship exists for the PREREQUISITES list and the HOLDS_UP list.
In general, this command is not needed since the job-to-job connections are rebuilt automatically when the lists are modified. However, if a job did not exist when it was entered into a list, then at the time when the job is created the REBUILD command should be used.
rebjob [-options] job_name
Alternaterebuild -job [-options] job_name
-[no]log
-[no]confirm
-[no]node=target_node
#1 |
---|
Schedule> rebjob incremental -log |
-confirm
-noconfirm
CONFIRM requests that the user be prompted prior to any operation to verify that the selected entry is the correct one.-node=target_node
The hostname option specifies what hostname (either local or remote) you want the operation performed on. -hostname may be substituted for -node.-log
-nolog
The LOG qualifier causes each completed operation to issue a note to the user.
Delete a job schedule.The rm command permanently removes a job definition and all references to this job from the on-line database. This includes any mention to this job on the prerequisite or initiate list of any other job.
rmjob [-options] job_name
Alternatedelete -job [-options] job_name
-[no]log
-[no]confirm
-[no]node=target_node
#1 |
---|
Schedule> rmjob abc* -confirm Delete /smith/abcd [Y/N] ? (Y): Y Delete /smith/abce [Y/N] ? (Y): Y Delete /smith/abcf [Y/N] ? (Y): N Delete /smith/abcg [Y/N] ? (Y): Y |
-confirm
-noconfirm
CONFIRM requests that the user be prompted prior to any operation to verify that the selected entry is the correct one.-node=target_node
The hostname option specifies what hostname (either local or remote) you want the operation performed on. -hostname may be substituted for -node.-log
-nolog
The LOG qualifier causes each completed operation to issue a note to the user.
Signal a scheduling event.The sigjob command sends a signal to the SCHEDULE SERVER. This command is automatically added to the temporary command files created when ever a job is submitted into an execution queue. Once at the beginning of job to signal that the job has started and once at the end to signal that the job has completed.3 The signal operation is optional. If a job terminates (via a crash or other abrupt mechanism) this event is picked up and becomes the completion signal.
sigjob [-options] job_name
Alternatesignal -job [-options] job_name
type of signal:
-completed (default)
-started
other options:
-status = number (default is 1)
-set_id = number (default of 0 implies all job sets)
general options:
-[no]log
-[no]confirm
-node = target_node
#1 |
---|
Schedule> sigjob first_of_three_jobs -started -log signaled /bmossberg/first_of_three_jobs |
-confirm
-noconfirm
CONFIRM requests that the user be prompted prior to any operation to verify that the selected entry is the correct one.-node=target_node
The hostname option specifies what hostname (either local or remote) you want the operation performed on. -hostname may be substituted for -node.-completed
The COMPLETED option sends a signal to the server that a job has successfully completed.-log
-nolog
The LOG qualifier causes each completed operation to issue a note to the user.-set_id
The SET_ID option points to a designated job set. If no number is specified the default implies all job sets.-started
The STARTED option sends a signal to the server that a job is being executed.-status
The STATUS option indicates the success (odd) or failure (even) of a job execution.
3 This command replaces the earlier SCHEDULE COMPLETED command. This earlier command is still accepted and is a synonom for the SIGNAL command. |
Previous | Next | Contents | Index |