Perhaps set this variable before calling the QSH command:
ADDENVVAR ENVVAR(QIBM_MULTI_THREADED) VALUE('Y') REPLACE(*YES)

Also on the SBMJOB, specify this parm: SBMJOB ALWMLTTHD(*YES)

And make sure that you have enough maxjobs available in the subsystem. Seems that you already have both jobq and subsystem set to max of 6.

Regards,
Richard Schoen
Web: http://www.richardschoen.net
Email: richard@xxxxxxxxxxxxxxxxx
------------------------------

message: 5
date: Thu, 16 Apr 2026 23:20:31 +0200
from: "gio.cot via MIDRANGE-L" <midrange-l@xxxxxxxxxxxxxxxxxx>
subject: Error qsh: fork: Error 3489 occurred.

Hi all

I'm try to run via CLP in batch, a sftp script (that use Expect tool), and
then invoke it with STRQSH CMD(&CMD) .

In the log file i find "fork: Error 3489 occurred. "

The batch CLP, is submitted a jobq that can execute max 6 jobs and the SubSystem also can execute max 6 jobs ; in this moment under this subsystem are running 3 jobs.

Which could be the problem ?

Thanks in advance

Gio
------------------------------

message: 6
date: Thu, 16 Apr 2026 15:38:14 -0600
from: Charles Wilt <charles.wilt@xxxxxxxxx>
subject: Re: Error qsh: fork: Error 3489 occurred.

Max jobs for a SBS / JOBQ isn't the same as MAXACT allowed for a SBS.
https://www.ibm.com/support/pages/qshell-message-qsh0002-error-code-3489-occurs-when-calling-qsh-cl-program-batch

Also consider whether or not those running 3 jobs are multi-threaded.

HTH,
Charles


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.