Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can learn more about the environment variables for QSHELL here: Shell Variables

Alternate resolution using ALWMLTTHD

If you are submitting your PHP script to run in a batch job, you can change the job to allow multi-threading.

In your SBMJOB, where you submit the job that runs your CL program, please add this parameter:

ALWMLTTHD(*YES)

For interactive jobs, the ALWMLTTHD parameter can be changed in the JOBD used by the interactive job.  This will take effect on the next sign on. 

Info
Note that by default, native mode jobs do not allow multi threading.  It may be preferable to use one of the other methods, since native mode programs running in your job may expect multi threading to be off.


Test Script

This is a simple test script you can use to verify curl is working for you.

...