ASP/400 Return Error Code List - Support

ASP/400 Return Error Code List

From Support

Jump to: navigation, search
// General Error return codes for ASP400
0  //Success  (IASP_SUCCESS)
-60 //CPF Message (IASP_CPFMESSAGE)
-256  // Demo Expired (IASP_DEMO_EXPIRED)
-201  // TCP/IP Timeout (IASP_TCP_TIMEOUT)
-202  // Wait Abandoned (IASP_WAIT_ABANDONED)
-203  // Wait Failed  (IASP_WAIT_FAILED)

// Error return codes for Database File Objects
0     // Generic Success Code
-1    // Couldn't gen EBCDIC Table
-2    // Couldn't gen ASCII
-3    // Out of local memory
-4    // Not attached to a licensed host
-5    // Host Buffer Overflow Occured
-6    // Invalid Session Number
-7    // Maximum Sessions Exceeded
-8    // Invalid Host Specified
-9    // Couldn't allocate APPC Buffer
-10   // Handle supplied was invalid
-11   // File Handle Not Found
-12   // Invalid Key Field Handle
-13   // No library list has been built
-14   // No library list has been built
-15   // File Not Open For Update
-16   // Invalid Extra File Attribute Requested
-17   // No Member List has been built
-18   // Invalid Structure Passed from VB...
-19   // No keys in the focused file
-20   // Couldn't Build QuickOpen File
-21   // Invalid Key List Name
-22   // Invalid Key List Marker
-23   // Numeric Conversion Failed
-24   // IBM Error Occurred
-25   // Couldn't Find Host File
-26   // Couldn't Open Host File
-27   // Couldn't Open Host File
-28   // List Index Number Was Out Of Bounds
-30   // No Field List Built                
-31   // SbmRmtCmd Error Occurred
-34   // Invalid Path String
-40   // Invalid Delphi/VB structure
-60   // CPF Message Waiting (IASP_CPFMESSAGE)
-61   // Format Level Mismatch
-62   // File Has No Members (Cannot Open)
-63   // Pointer Supplied Is Invalid 
-64   // Enumerator Not Defined
-65   // Enumerator Not Defined
-66   // No Value Defined
-67   // Extended field block(s) for this file have been freed (are not available)
-70   // Invalid UserID / Password
-80   // Sign on server port not responding
-81   // Invalid primary return code (check log)
-82   // Socket Send error
-83   // Socket Recv error
-84   // Invalid System Job Name
-85   // No Record Returned  (IASP_NORECORD)
-86   // File Object Has Already Been Opened
-87   // Keys are not valid
-88   // Multidimension Safearray
-89   // Number of keys passed > number of keys in file
-90   // Key array contains no data
-91   // Array doesn't contain BSTRS
-92   // Variant type not supported
-93   // Key/Size mismatch
-94   // Key/Size mismatch
-95   // Non keyed file (IASP_NONKEYEDFILE)
-96   // Parameter list conversion error
-97   // Parameter list conversion error/file not open (IASP_FILENOTOPEN)
-98   // Attempt to read by key without a position
-99   // Trying to set format on a single format file
-100   // Security failure
-101   // Couldn't post a thread message
-102   // End of file
-103  // Internal datastream error
-104  // Unknown reply message
-105  // Connection was closed
-106  // No blocking on an update file

// Data type errors
-401   // Field overflow
-402   // Scale overflow
-403   // Invalid numeric

// OS/400 Errors
-300  // User ID Unknown
-301  // User ID Revoked
-302  // Password incorrect
-303  // Revoke pending
-304  // Password expired
-305  // Prev2R2 password
-306  // Signon unknown error

// Data Queue Error Constants
0   // Successful execution
-1   // Data queue not open for I/O
-2   // No host property
-3   // No port defined
-4   // No timeout defined
-5   // No data
-6   // Command check
-7   // Syntax error
-8   // Protocol error
-9   // Queue deleted
-10   // Bad queue length
-11   // Invalid datastream level
-12   // Invalid version
-13   // Rejected by user exit program
-14   // Not authorized to user exit program
-15   // User exit program not found
-16   // Cancel of receive completed
-17   // User exit program failed
-18   // Invalid number of user exit programs
-19   // Data Queue object is in a dirty state
-20   // Undefined error
-21   // Data presented for a write will overflow
-22   // Length of supplied key doesn't equal DQ Key
-23   // Duplicated field name in DQ Def
-24   // Field name not found
-25   // Attempt to write without fields defined
-26   // Field without an assigned value detected
-27   // Length of the DQ name is incorrect
-28   // Length of the DQ lib is incorrect
-29   // Length of the DQ text description is incorrect
-30   // No valid authority assigned
-31   // Invalid queue type							    

// Remote Command/Program call error codes
0    // Success
-1   // Invalid parm role
-2   // Invalid parm type
-3   // Limited user
-4   // Invalid exchange attribute
-5   // Invalid datastream level
-6   // Invalid version
-7   // Invalid CCSID
-8   // Invalid NLV
-9   // Invalid NLV not installed
-10  // Invalid NLV noval
-11  // Invalid NLV LIBL
-12  // Receive data error
-13  // Invalid LL
-14  // Invalid server id
-15  // Incomplete data
-16  // Host resource error
-17  // Invalid request id
-18  // UEP invalid
-19  // Invalid request
-20  // Invalid parameter
-21  // Max exceeded
-22  // UEP error
-23  // UEP denied
-24  // Command failed
-25  // RPC not resolved
-26  // RPC failed
-27  // Duplicate parm
-28  // Connection closed
-29  // Is not valid
-30  // Parm not found
-31  // Variant unsupported
-32  // Success message
-99  // Internal error

Personal tools