|
John Carr wrote:
>Is there a place where one can "Easily" find what the
>valid values are for the return codes from API's
>And what they mean?
John, to add to this, values for ERRNO can be found in QSYSINC/SYS(ERRNO)
and QCLE/H(ERRNO) As for what they mean, you need to refer to the
individual API for the details.
Here's a /copy member I use:
* This is the /COPY member QRPGLESRC,ERRNO
* it contains the constant definitions for the C "errno" and "h_errno"
* The original source is QSYSINC/SYS(ERRNO) and QCLE/H(ERRNO)
d EDOM c const('3001')
d ERANGE c const('3002')
d ETRUNC c const('3003')
d ENOTOPEN c const('3004')
d ENOTREAD c const('3005')
d ERECIO c const('3008')
d ENOTWRITE c const('3009')
d ESTDIN c const('3010')
d ESTDOUT c const('3011')
d ESTDERR c const('3012')
d EBADSEEK c const('3013')
d EBADNAME c const('3014')
d EBADMODE c const('3015')
d EBADPOS c const('3017')
d ENOPOS c const('3018')
d ENUMMBRS c const('3019')
d ENUMRECS c const('3020')
d EBADFUNC c const('3022')
d ENOREC c const('3026')
d EBADDATA c const('3028')
d EBADOPT c const('3040')
d ENOTUPD c const('3041')
d ENOTDLT c const('3042')
d EPAD c const('3043')
d EBADKEYLN c const('3044')
d EPUTANDGET c const('3080')
d EGETANDPUT c const('3081')
d EIOERROR c const('3101')
d EIORECERR c const('3102')
d EINVAL c const('3021')
d EIO c const('3006')
d ENODEV c const('3007')
d EBUSY c const('3029')
d ENOENT c const('3025')
d EPERM c const('3027')
d EACCES c const('3401')
d ENOTDIR c const('3403')
d ENOSPC c const('3404')
d EXDEV c const('3405')
d EWOULDBLOCK c const('3406')
d EAGAIN c const('3406')
d EINTR c const('3407')
d EFAULT c const('3408')
d ENXIO c const('3415')
d EADDRINUSE c const('3420')
d EADDRNOTAVAIL c const('3421')
d EAFNOSUPPORT c const('3422')
d EALREADY c const('3423')
d ECONNABORTED c const('3424')
d ECONNREFUSED c const('3425')
d ECONNRESET c const('3426')
d EDESTADDRREQ c const('3427')
d EHOSTDOWN c const('3428')
d EHOSTUNREACH c const('3429')
d EINPROGRESS c const('3430')
d EISCONN c const('3431')
d EMSGSIZE c const('3432')
d ENETDOWN c const('3433')
d ENETRESET c const('3434')
d ENETUNREACH c const('3435')
d ENOBUFS c const('3436')
d ENOPROTOOPT c const('3437')
d ENOTCONN c const('3438')
d ENOTSOCK c const('3439')
d ENOTSUP c const('3440')
d EOPNOTSUPP c const('3440')
d EPFNOSUPPORT c const('3441')
d EPROTONO...
d SUPPORT c const('3442')
d EPROTOTYPE c const('3443')
d ERCVDERR c const('3444')
d ESHUTDOWN c const('3445')
d ESOCKTNO...
d SUPPORT c const('3446')
d ETIMEDOUT c const('3447')
d EUNATCH c const('3448')
d EBADF c const('3450')
d EMFILE c const('3452')
d ENFILE c const('3453')
d EPIPE c const('3455')
d EEXIST c const('3457')
d EDEADLK c const('3459')
d ENOMEM c const('3460')
d EOWNERTERM c const('3462')
d EDESTROYED c const('3463')
d ETERM c const('3464')
d EMLINK c const('3468')
d ESPIPE c const('3469')
d ENOSYS c const('3470')
d EISDIR c const('3471')
d EROFS c const('3472')
d EUNKNOWN c const('3474')
d EITERBAD c const('3475')
d EDAMAGE c const('3484')
d ELOOP c const('3485')
d ENAMETOOLONG c const('3486')
d ENOLCK c const('3487')
d ENOTEMPTY c const('3488')
d ENOSYSRSC c const('3489')
d ECONVERT c const('3490')
d E2BIG c const('3491')
d EILSEQ c const('3492')
d ESOFTDAMAGE c const('3497')
d ENOTENROLL c const('3498')
d EOFFLINE c const('3499')
d EROOBJ c const('3500')
d ELOCKED c const('3506')
d EFBIG c const('3507')
d EIDRM c const('3509')
d ENOMSG c const('3510')
d EFILECVT c const('3511')
d EBADFID c const('3512')
d ESTALE c const('3513')
d ESRCH c const('3515')
d ENOTSIGINIT c const('3516')
d ECHILD c const('3517')
d ETOOMANYREFS c const('3523')
d ENOTSAFE c const('3524')
d EOVERFLOW c const('3525')
d EJRNDAMAGE c const('3526')
d EJRNINACTIVE c const('3527')
d EJRNRCVSPC c const('3528')
d EJRNRMT c const('3529')
d ENEWJRNRCV c const('3530')
d ENEWJRN c const('3531')
d EJOURNALED c const('3532')
d EJRNENTTOOLONG c const('3533')
d EDATALINK c const('3534')
Buck Calabro
Aptis; Albany, NY
"Nothing is so firmly believed as
that which we least know" -- Michel Montaigne
Visit the Midrange archives at http://www.midrange.com
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.