APPDATE command: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
The APPDATE command allows you to control the operation of date and time | The APPDATE command allows you to control the operation of date and time | ||
oriented User Language $functions, in the following two ways: | oriented <var class="product">User Language</var> $functions, in the following two ways: | ||
<ol> | <ol> | ||
<li>You can specify a system-wide or user-level | <li>You can specify a system-wide or user-level | ||
Line 15: | Line 15: | ||
<li>You can use the DATE_ERR clause to | <li>You can use the DATE_ERR clause to | ||
set switches that control the default system behaviour when errors are | set switches that control the default system behaviour when errors are | ||
encountered in date and time oriented User Language $functions. | encountered in date and time oriented <var class="product">User Language</var> $functions. | ||
The choices are to produce an error message along with request | The choices are to produce an error message along with request | ||
cancellation, produce a warning message, or silently continue with | cancellation, produce a warning message, or silently continue with |
Revision as of 21:54, 10 October 2012
The APPDATE command allows you to control the operation of date and time oriented User Language $functions, in the following two ways:
- You can specify a system-wide or user-level clock that is used to obtain date and time values for User Language $functions. For application testing, this is preferred to the Model 204 SYSDATE parameter, which is much less flexible and which greatly complicates the ability to do things such as share procedure files or read-only data files in the testing environment. The APPDATE command affects only date and time oriented User Language $functions; it does not affect any other date or time in the Model 204 environment.
- You can use the DATE_ERR clause to set switches that control the default system behaviour when errors are encountered in date and time oriented User Language $functions. The choices are to produce an error message along with request cancellation, produce a warning message, or silently continue with the request. This control is available at the system and user level, and can also be set for the duration of a User Language request, via the $SIR_DATE_ERR function. At the system and user level, you can also control whether procedure names and line numbers are available for error messages.
This command will perform no useful processing unless a site is authorized for the Sir2000 User Language Tools. The APPDATE command has an extensive set of parameters and is more completely documented in the Sir2000 User Language Tools Reference Manual.