The DS2 source code
submitted to SAS Micro Analytic Service should begin with the following
statement, just above the PACKAGE statement:
"ds2_options sas"
This
statement instructs DS2 to use SAS missing value handling, which helps
ensure that your DS2 program behaves the same as if it were run by
SAS Foundation. DS2 source code should end with this statement:
"endpackage"
The
code cannot contain DATA statements, PROC statements, or THREAD statements.
The source code should contain one and only one DS2 package, and
this package can contain as many methods as desired.
It is a best practice
to include a line feed character at the end of each source code line.
It is possible to place all of your source code on a single line.
However, doing so makes it difficult to use compiler warning and
error messages that include line numbers.
Note: DS2 supports only a specific
style of comment. Comments start with the characters /*, and they
end with the characters */. All characters between the starting and
ending characters are part of the comment text. Comments can be nested.
When there is ambiguity in determining a token, the compiler always
chooses the longest possible sequence of characters that can make
up a token.