Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 Tools : $BATCHOPT

$BATCHOPT
Sets the batch options associated with a SCHEDULE TO statement’s batch request, which sends the batch job to a queue. (C)
Invocation
CALL $BATCHOPT(batch_option,option_value)
 
Where to start searching for the rule. Valid values: S – system library, I – installation library, L – local library
The name of the library to access as the local library when the requested rule is executed.
The security group that is in effect when the rule is run in batch mode. You can specify any of your valid groups.
The symbolic name of the printer. If you want to include the node name of the printer, specify the print destination in the form:
node is the name of the node.
char is a non-alphanumeric character that separates the node name from the printer name.
printer is the name of the printer.
The form name, if the output data should be printed on a special output form.
An external routine to direct the output, if you want to direct system output to an unsupported device (z/OS and Solaris only). Leave this field blank if you specify a node name in the PRINT_DESTINATION field.
The FCB (Forms Control Block) to use, if you want to use an output format other than the default
The UCS (Universal Character Set) to use, if you want to use a character set other than the default
Usage Notes
BATCH is the interactive version of this tool used on the developer workbench.
Use $BATCHOPT before using a SCHEDULE TO statement (refer to TIBCO Object Service Broker Programming in Rules for a description of the SCHEDULE statement with the TO clause). Because $BATCHOPT applies only in conjunction with scheduling to a queue, it does not affect a SCHEDULE statement without a TO clause.
If you do not set batch options with $BATCHOPT, the default for JCL_NAME is *DEFAULT*, and the values for the rest of the options are determined by the default values for the current session.
Example
The rule shown here sets the local library and the JCL name before scheduling the rule, BACKUP, in browse mode to a queue called OVERNIGHT.

 
SCHED_RULE;
_
_ ---------------------------------------------------------------------------
_ ------------------------------------------------------------+--------------
_ CALL $BATCHOPT('LOCAL_LIB','TEST'); | 1
_ CALL $BATCHOPT('JCL_NAME','MY_JCL'); | 2
_ SCHEDULE IN BROWSE TO 'OVERNIGHT' BACKUP; | 3
_ ---------------------------------------------------------------------------

 
When the rule called BACKUP is executed in batch mode, the JCL that is used is MY_JCL, and the local library TEST runs in browse mode.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved