Searching the Help
To search for information in the Help, type a word or phrase in the Search box. When you enter a group of words, OR is inferred. You can use Boolean operators to refine your search.
Results returned are case insensitive. However, results ranking takes case into account and assigns higher scores to case matches. Therefore, a search for "cats" followed by a search for "Cats" would return the same number of Help topics, but the order in which the topics are listed would be different.
Search for | Example | Results |
---|---|---|
A single word | cat
|
Topics that contain the word "cat". You will also find its grammatical variations, such as "cats". |
A phrase. You can specify that the search results contain a specific phrase. |
"cat food" (quotation marks) |
Topics that contain the literal phrase "cat food" and all its grammatical variations. Without the quotation marks, the query is equivalent to specifying an OR operator, which finds topics with one of the individual words instead of the phrase. |
Search for | Operator | Example |
---|---|---|
Two or more words in the same topic |
|
|
Either word in a topic |
|
|
Topics that do not contain a specific word or phrase |
|
|
Topics that contain one string and do not contain another | ^ (caret) |
cat ^ mouse
|
A combination of search types | ( ) parentheses |
|
- List: rtecalls
- rtecall("alalnum") function
- rtecall("counter") function
- rtecall("datemake") function
- rtecall("escstr") function
- rtecall("filecopy") function
- rtecall("fileinit") function
- rtecall("filldate") function
- rtecall("getnumber") function
- rtecall("getprimary") function
- rtecall("getrecord") function
- rtecall("getunique") function
- rtecall("isalnum") function
- rtecall("isalpha") function
- rtecall("islower") function
- rtecall("isnumeric") function
- rtecall("isupper") function
- rtecall("log") function
- rtecall("passchange") function
- rtecall("policycheck") function
- rtecall("qbeform") function
- rtecall("recdupl") function
- rtecall("recordexists") function
- rtecall("refresh") function
- rtecall("resetnotebook") function
- rtecall("rfirst") function
- rtecall("rgoto") function
- rtecall("rid") function
- rtecall("scantable") function
- rtecall ("select") function
- rtecall ("setdebug") function
- rtecall("sort") function
- rtecall("statusupdate") function
- rtecall("transtart") function
- rtecall("transtop") function
- rtecall("trigger") function
rtecall("scantable") function
A RAD function that scans the specified table for certain types of invalid records and fixes the records.
Function
rtecall("scantable")
Format
$L.success.flg=rtecall($L.fnc.name, $return.code, $scantype, $tablename, $bfix, $columns)
$L.success.flg=rtecall($L.fnc.name, $return.code, $scantype, $tablename, $bfix, $totalnum, $fixed, $deleted)
Parameters
The following parameters are valid for the rtecall("scantable") function:
Parameter | Data type | Description |
---|---|---|
$L.success.flg | Logical | Indicates if the function was successful. |
$L.fnc.name | String | Name of the sub-function to call, in this case "scantable". |
$L.return.code | Number | Provides a more detailed return code. |
$scantype | Number |
Specifies the type of scan the function will perform, which can be one of the following:
|
$L.tablename | String | The name of the table to be scanned. |
$bfix | Bool | Specifies whether to automatically fix the invalid data. |
$columns | String array | Only available when $scantype is 1, specifies the columns on which the function will scan for duplicate records. |
$totalnum | Number | Indicates the number of the invalid records that were found. |
$fixed | Number | Indicates the number of the invalid records that were fixed. |
$deleted | Number | Indicates the number of the records that were removed. |
Factors
If the $L.success.flg is false
, the function failed. If it is true
, the function succeeded.
$totalnum, $fixed, and $deleted are available when $scantype is 2 or 3. This total number should include $fixed, $deleted, and the number of invalid records that failed to be fixed.
Examples
The following function call scans the ioaction table for duplicate records on the field1 and field2 fields and fixes the duplicate records.
$L.flg=rtecall("scantable", $L.return.code, 1, "ioaction", true, {"field1","field2"})
The following function call scans the ioaction table for null values that are disallowed by keys.
$L.flg=rtecall("scantable", $L.return.code, 2, "ioaction", true, $all, $fixed, $deleted)
Additional information
If you choose to fix invalid data by setting $bfix
to 1:
- In a "type-1" scan, the function differentiates duplicate items by appending suffixes such as -dup1, -dup2...-dupx.
-
In a "type-2" scan, the following behaviors occur:
- The function removes the record if null values violate a "Unique" key.
- Or the function replaces the first of the null values with a default value if null values violate a "No Nulls" key.
-
In a "type-3" scan, the following behaviors occur:
- The function converts the value into the correct data type if the value data makes sense in the target data type.
- The function replaces the value with a default value in the correct data type.