Sign in or 

| Return Code | Description/Meaning |
| OK | OKAY. Operation completed normally. No errors detected. |
| ER | FATAL ERROR. Fatal file error detected. Error is probably irrecoverable. Locate cause of problem, correct, and re-attempt the operation. |
| VE | VALIDATION ERROR. Insert, update or delete operation failed to satisfy a file or dictionary level validation check. |
| NR | NO RECORD. No record(s) could be found matching the request. |
| EF | END OF FILE. End of file detected during read operation. |
| BF | BEGINNING OF FILE. Beginning of file detected during a read backwards. |
| EQ | EQUAL KEY FOUND. A record with a key equal to the key specified was found in the file. |
| NE | NO EQUAL KEY FOUND. No record could be found with a key equal to the key specified. |
For example:
FETCH FIELDS(#ORDERHEAD) FROM_FILE(ORDHDR) WITH_KEY(#ORDER)
IF COND('#IO$STS *NE OK')
MESSAGE MSGTXT('Order not found in current order file')
ENDIF
For example:
DEFINE FIELD(#RETCODE) TYPE(*CHAR) LENGTH(2)
FETCH FIELDS(#ORDERHEAD) FROM_FILE(ORDHDR) WITH_KEY(#ORDER) IO_STATUS(#RETCODE)
IF COND('#RETCODE *NE OK')
MESSAGE MSGTXT('Order not found in current order file')
ENDIF
FETCH FIELDS(#ORDERHEAD) FROM_FILE(ORDHDR) WITH_KEY(#ORDER)
IF_STATUS IS_NOT(*OKAY)
MESSAGE MSGTXT('Order not found in current order file')
ENDIF
|
petewood |
Latest page update: made by petewood
, Oct 28 2008, 8:32 AM EDT
(about this update
About This Update
view changes - complete history) |
|
More Info: links to this page
|