The following items describe how the On Statement/Code job processing parameter interprets script lines.
Type of Script Statement: Depending on the shell used, Control-M/Agent does not process the following types of script statements for comparison with the text specified in the Stmt sub parameter of the On Statement/Code parameter:
For a Bourne shell, text in if, for, while and case statements.
For a csh shell, text in if statements
EXAMPLE: No part of the following script line should be used in the Stmt sub parameter of the On Statement/Code parameter:
if [ ‘baseline’ - eq 0 ]; then
Continuation Lines: Control-M/Agent does not process continuation lines for comparison with text specified in the Stmt sub parameter of the On Statement/Code parameter. In the Stmt subparameter do not specify text that is on a script continuation line.
Length of Script Statement: Control-M/Agent only processes the first 132 characters of a script statement for comparison with the text specified in the Stmt subparameter of the On Statement/Code parameter.
HERE Documents: The term HERE document refers to lines of text in a script that are passed to a command as input, but are not passed to the shell. Control-M/Agent does not support the On Statement/Code job processing parameter for HERE documents.
EXAMPLE: In the following script, line 1 and line 2 of a HERE document are passed to the specified cat command:
cat > /tmp/junk << EOF_EOF
line 1
line 2
EOF_EOF
echo "DONE"
For more information about the On Statement/Codes, see On/Do Actions in Control-M Parameters.