SQLSTATE 38501 should be SQLCODE -443 - that's SQL0443 = Trigger program or external routine detected an error.

Therefore you have to inspect the job log for the exception message before that.

HTH
Daniel


Am 08.01.2026 um 17:18 schrieb Brad Stone <bvstone@xxxxxxxxx>:

What is SQLCODE?

On Thu, Jan 8, 2026 at 10:12 AM Daniel Gross <daniel@xxxxxxxx> wrote:

It's most probably a AXISC exception - you have to look into the job log
for the whole error message and 2nd level text - there might be a clue on
what fails.

HTH
Daniel


Am 08.01.2026 um 17:06 schrieb Justin Taylor <jtaylor.0ab@xxxxxxxxx>:

We have an SQLRPGLE program that's calling QSYS2.HTTP_POST_VERBOSE().
The
first call within a job always fails with SQLSTATE 38501. Subsequent
calls
always work. All inputs are the same.

How do we find the cause and fix this?

Thanks
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription
related questions.

--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.


--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 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.