COMMENT command

Used to add explanatory notes to your scripts without affecting processing.

Syntax

Syntax for single-line comments:

COMMENT comment_text
Syntax for multi-line comments:
COMMENT
  comment_text
  <...n>
<END>

Parameters

comment_text

The comment you are adding. If you are using the single-line comment syntax, the entire comment text must be on one line. If you are entering a multi-line comment, you can include as many lines of comment text as necessary on the line following the COMMENT command. The comment is terminated by either the END statement or a blank line.

END

Optional. Specifies the end of a multi-line COMMENT command. If this optional statement is included, it must be entered on the line immediately following the last comment line. If it is omitted, a blank line must follow the last comment line.

Remarks

You can use the COMMENT command to include information about the purpose of your script, the logic used, and other information such as the required inputs for the script and the purpose of each variable you define. The comments in a script are also written to the ACL command log each time the script runs.

Examples

a. Single-line comments
COMMENT Generate the standard deviation and average.
STATISTICS ON %v_amt% STD TO SCREEN NUMBER 5
COMMENT Create fields for storing standard deviation and average.
DEFINE FIELD Standard_Dev COMPUTED STDDEV1
DEFINE FIELD Average COMPUTED AVERAGE1

b. A multi-line comment

COMMENT
  This analytic identifies multiple records having common 
  transaction originator IDs (like vendor ID or merchant ID)
  where the transaction date values are either equal or one day apart.
  This analytic can be used for split invoices, split purchase orders,
  split requisitions, and split corporate card transactions.
END


(C) 2013 ACL Services Ltd. All Rights Reserved. | Send feedback