NetBatch Manual
Commands
NetBatch Manual—522460-004
6-76
COMMENT Command
COMMENT Command
Use the COMMENT command at the beginning of a line in a BATCHCOM input file to
cause BATCHCOM to ignore the line.
comment-text
is any text, including braces and square brackets.
Considerations
•
The COMMENT command is available to all users.
•
You can enter the COMMENT command only at the beginning of a line in a
BATCHCOM input file.
•
Comment text finishes at the end of a line. To continue the comment on the next
line, do one of:
°
Type the line continuation character (&) at the end of the line you want to
continue, and then press RETURN.
°
Enter the COMMENT command at the beginning of the new line.
•
Double equals (==) is an alias of the command keyword COMMENT.
Examples
•
This example shows the effect of the COMMENT command and line continuation
character in the input file ABC. In the example, BATCHCOM executes the first and
fourth SUBMIT JOB commands but ignores the second and third.
> FUP COPY ABC
SUBMIT JOB J1, IN INFILE1
COMMENT SUBMIT JOB J2, IN INFILE2 &
*** Run jobs J2 and J3 on Mondays and Tuesdays only *** &
SUBMIT JOB J3, IN INFILE3
SUBMIT JOB J4, IN INFILE4
> BATCHCOM /IN ABC/ $SCHD
SUBMIT JOB J1, IN INFILE1
Job J1 job number 10 submitted
COMMENT SUBMIT JOB J2, IN INFILE2 &
*** Run jobs J2 and J3 on Mondays and Tuesdays only *** &
SUBMIT JOB J3, IN INFILE3
SUBMIT JOB J4, IN INFILE4
Job J4 job number 11 submitted
COM[MENT] [ comment-text ]
Note. You also can use the line continuation character to continue a line during an
interactive session. After you enter the character and press RETURN, a double-braces
prompt (}}) appears indicating the continued line.