Logger and Appender Object Language Reference |
Definition |
Dot notation provides a shortcut for invoking methods and for setting and querying attribute values. Using dot notation makes your SAS programs easier to read.
To use dot notation with a DATA step component object, you must declare and instantiate the component object by using the DECLARE statement.
Syntax |
object.attribute
or
object.method(<argument_tag-1: value-1<, ...argument_tag-n: value-n>>);
Arguments
specifies the variable name for the DATA step component object.
specifies an object attribute to assign or query.
When you set an attribute for an object, the code takes this form:
object.attribute = value;
When you query an object attribute, the code takes this form:
value = object.attribute;
specifies the name of the method to invoke.
identifies the arguments that are passed to the method. Enclose the argument tag in parentheses. The parentheses are required whether or not the method contains argument tags.
All DATA step component object methods take this form:
return_code = object.method(<argument_tag-1: value-1 <, ...argument_tag-n: value-n>>);
The return code indicates the method is success or failure. A return code of zero indicates success; a non-zero value indicates failure. If you do not supply a return code variable for the method call and if the method fails, an error message is printed to the log.
specifies the argument value.
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.