Valid in: | XML Configuration |
Default | None |
Requirement | This parameter is required. |
Requirement | This parameter is required. |
Default | The locale setting that is in effect for the SAS session. For example, the LOCALE system option might be specified in the configuration file for a SAS server or in the configuration file for Base SAS. |
For logging processes that run outside a SAS session (for example, logging for the SAS Object Spawner), the default is the locale that is specified in the operating system settings. | |
Requirement | This parameter is not required. |
See | SAS National Language Support (NLS): Reference Guide |
0
,
messages are processed synchronously, one row at a time.
Default | 1 |
Requirement | This parameter is not required. |
Requirement | SelectStatement is required if TableName is not specified. |
Interaction | The TableName and SelectStatement parameters are mutually exclusive. If both of these parameters are specified, the SelectStatement parameter takes precedence. |
Example | <param name="SelectStatement" value="select date,level,message from dblog;"/> |
Requirement | TableName is required if SelectStatement is not specified. |
Interaction | The TableName and SelectStatement parameters are mutually exclusive. If both of these parameters are specified, the SelectStatement parameter takes precedence. |
Restrictions | Limit each column parameter to a single conversion character. Combining multiple conversion characters in a single column could cause alignment problems in the output. |
DBAppender does not support the following: | |
DBAppender has limited support for the d (date/time) conversion character. To insert a date, specify the underlying column to be either a DATE or any character type of length 10. To insert a timestamp, specify the underlying column to be either a TIMESTAMP or any character type of length 24. | |
If you use the m (message) conversion character, position it in the final column of the table. Because DBAppender does not use format modifiers to control column widths, a lengthy message in an interior column position could cause text overflow problems. | |
Requirement | At least one Column parameter is required. |
See | Conversion character details in the “Pattern Layouts” chapter: c, d, F, L, m, p, r, S, sn, t, u, x, X |
Example | <param name="column" value="d"/> <param name="Column" value="p"/> <param name="Column" value="u"/> <param name="Column" value="@A literal string value to insert"/> <param name="Column" value="m"/> |
<appender name="dblog" class="DBAppender"> <param name="ConnectionString" value="DRIVER=DB2;UID=User1;PWD=********; CONOPTS=(DSN=LOGDSN);CATALOG=X;" /> <param name="MaxBufferedEvents" value="300" /> <param name="TableName" value="LOG" /> <!-- The column parameters must be specified in exactly the same order that the columns occur in the table. --> <param name="Column" value="sn" /> <param name="Column" value="d" /> <param name="Column" value="c" /> <param name="Column" value="m" /> </appender>
<appender name="dblog" class="DBAppender"> <param name="ConnectionString" value="DRIVER=ODBC;UID=User1;PWD=********; CONOPTS=(DSN=SQLSERVERDSN);" /> <param name="MaxBufferedEvents" value="300" /> <param name="TableName" value="LOG" /> <!-- The column parameters must be specified in exactly the same order that the columns occur in the table. --> <param name="Column" value="sn" /> <param name="Column" value="d" /> <param name="Column" value="c" /> <param name="Column" value="m" /> </appender>
libname x oracle user=User1 password=******** path='mypath'; data x.LOG; length seqno $10; length date $24; length logger $100; length msg $500; run;
<appender name="dblog" class="DBAppender"> <param name="ConnectionString" value="DRIVER=oracle;UID=User1; PWD=********;PATH=mypath;CATALOG=oracle_log" /> <param name="MaxBufferedEvents" value="300" /> <param name="TableName" value="LOG" /> <!-- The column parameters must be specified in exactly the same order that the columns occur in the table. --> <param name="Column" value="sn" /> <param name="Column" value="d" /> <param name="Column" value="c" /> <param name="Column" value="m" /> </appender>
libname x 'c:\temp'; data x.LOG; length seqno $10; length date $24; length logger $100; length msg $500; run;
<appender name="dblog" class="DBAppender"> <param name="ConnectionString" value="DRIVER=base;CATALOG=base; schema=(name=mywork;primarypath='C:\temp');" /> <param name="MaxBufferedEvents" value="300" /> <param name="TableName" value="LOG" /> <!-- The column parameters must be specified in exactly the same order that the columns occur in the table. --> <param name="column" value="sn" /> <param name="column" value="d" /> <param name="column" value="c" /> <param name="column" value="m" /> </appender>
<appender name="dblog" class="DBAppender"> <param name="ConnectionString" value="DRIVER=TERADATA;UID=User1; PWD=********;server=myserver;database=mydatabase;CATALOG=X;" /> <param name="MaxBufferedEvents" value="300" /> <param name="TableName" value="LOG" /> <!-- The column parameters must be specified in exactly the same order that the columns occur in the table. --> <param name="Column" value="sn" /> <param name="Column" value="d" /> <param name="Column" value="c" /> <param name="Column" value="m" /> </appender>