Whenever the SAND CDBMS Data Loader utility (ndlm) exits, it returns a status code. If no issues are encountered during a loader operation, ndlm returns 0 to indicate success. Apart from the success code, there are other types of status codes: warnings, errors, and fatal errors. All of the possible exit codes are summarized in the following table:
Code Name Type Description 0 A_OK SUCCESS The operation completed successfully. 3 RC_WARNING_NDL WARNING The operation generated an internal (ndlm) warning. 4 RC_WARNING_EXTERNAL WARNING The operation resulted in a warning from an external source, for example, the database server. 5 RC_ERROR_NDL ERROR The operation generated an internal (ndlm) error. 6 RC_ERROR_EXTERNAL ERROR The operation produced an error from an external source, for example, the database server. 9 RC_FATAL_NDL_ERROR FATAL ERROR The operation caused an error that resulted in the immediate termination of the loader process. Most error or warning exit codes are associated with specific ndlm messages, which are listed in the tables below. External errors returned via the API will include the external error message with the exit code. Typically, these external errors will come from the database server engine.
Refer to the Ndlm Error Messages section of this guide for full descriptions of the ndlm error, warning, and status messages, as well as prompts. Descriptions of most external errors can be found in either the Database Server Error and Warning Messages section or the Client Error Messages section.
Note that if ndlm warnings are disabled (-w option), ndlm will return exit code 0 for all warnings.
Return Code 3 (RC_WARNING_NDL)
Name Associated Message or Output A_EXPORT_NUM_TRUNC WARNING 30165: numeric truncation during export, row n, column x A_FIELDLEN WARNING 30128: input record n: width is too long A_FIELDLEN_EX WARNING 30128: input record n: width (x) of field field-name is too long - column width is defined as y A_MAXERRORS WARNING 30142: Found n error(s) during IMPORT. Keep going? Yes/No A_MAX_3PHASE_THREADS WARNING 30155: defaulting -k option to 32 threads A_MISSING_CNT WARNING 30141: missing parameter for x, option ignored A_MISSING_FLAT_FILE WARNING 30156: missing specified flat file 'file-name', skipped A_NO_TARGET WARNING 30168: loading with no target
Return Code 4 (RC_WARNING_EXTERNAL)
Name Associated Message or Output A_FLDLEN_MISMATCH WARNING 30144: field width of x does not match column width of y A_MULTIOPT WARNING 30140: x already defined, duplicate ignored A_NO_ROWS_SCT WARNING 30171: no records selected, stopping SCT file creation. A_PROC_ZERO_ROWS WARNING 30143: User specified zero rows to process. A_WARN_NO_PATH_TEMPDRIVE WARNING 30169: One or more TEMPDRIVE paths do not exist.
Return Code 6 (RC_ERROR_EXTERNAL)