Page History
7.13.1 CHECK_FOR Parameters
|
|---|
Refer to Specifying File Names in I/O Commands.
|
|---|
Refer to Specifying File Key Lists in I/O Commands.
|
|---|
Specifies the name of a field that is to receive the "return code" that results from the I/O operation.
...
For the values, refer to I/O Return Codes.
|
|---|
Specifies what action is to be taken if an I/O error occurs when the command is executed.
...
If none of the previous values are used you must nominate a valid command label to which control should be passed.
|
|---|
Specifies the action to be taken if a validation error was detected by the command.A validation error occurs when information that is to be added, updated or deleted from the file does not pass the FILE or DICTIONARY level validation checks associated with fields in the file.
...
| Info |
|---|
| The *LASTDIS is valid even if there is no "last display" (such as in batch functions). In this case the function will abort with the appropriate error message(s). When using *LASTDIS the "Last Display" must be at the same level as the database command (INSERT, UPDATE, DELETE, FETCH and SELECT). If they are at different levels e.g. the database command is specified in a SUBROUTINE, but the "Last Display" is a caller routine or the mainline, the function will abort with the appropriate error message(s). The same does NOT apply to the use of event routines and method routines in Visual LANSA. In these cases, control will be returned to the calling routine. The fields will display in error with messages returned to the first status bar encountered in the parent chain of forms, or if none exist, the first form with a status bar encountered in the execution stack (for example, a reusable part that inherits from PRIM_OBJT). |
|
|---|
Specifies what is to happen if no record is found in the file that has a key matching the key nominated in the WITH_KEY parameter.*NEXT indicates that control should be passed to the next command.
...
If none of the previous values are used you must nominate a valid command label to which control should be passed.
|
|---|
Specifies whether a "not found" message is to be automatically issued or not.
...