× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Bryan,

I decided to not use spawn(). It produces a batch job that is "batch
interactive" (BCI) and I suspect that this is not exactly the same as using
SBMJOB, that produces a true BCH job. These may have a difference for sure.

My issue is actually another thing related to using two TLS secure sessions
that establish on the same job. The second one, when it tries to
connect to an external server and times out, it throws an exception that
appears to interfere with the resources that are supposedly already owned
by a first set of GSKit API handlers. This makes the first secure session
to end without me closing anything. I already found another way to solve
it and it is in turn submitting yet another job to handle the third-party
connection. This works good because it runs on a totally separated job
with its own resources and does not cause anymore the initial problem.
'
So I'll take this road.

I appreciate your time.
Thanks for your help.

Javier Sanchez
Expert IBM i Developer.


El mié, 30 mar 2022 a las 12:25, Bryan Dietz (<bdietz400@xxxxxxxxx>)
escribió:

I'm not sure if this is still a need, but maybe the following would help.

I did find that there is a SPAWN tool included in QUSRTOOL. Option 7 for
57xxSS1

<help>
The Spawn Program (SPAWN) command spawns a program into a kernel
thread enabled process. Optionally, the user issuing the SPAWN
command can pass parameters to the spawned program, can wait for the
program to finish before returning control to the caller, can start
the native debugger on the called program, and can enable User/(CPA)
tracing in the called program.

Two environment variables are set each time a program is
successfully spawned by this command: LAST_SPAWNED_JOBNAME is set to
the qualified job name of the spawned program and LAST_SPAWNED_PID
is set to its process id (pid). This information is also reported
in a message to the joblog.
</help>

Bryan

On Tue, Mar 8, 2022 at 4:26 PM Javier Sanchez <
javiersanchezbarquero@xxxxxxxxx> wrote:

Good day everyone. Is there a specific API that can submit a job without
having to use the SBMJOB command?

I know that there exist a few that "spawn" BCI -type of jobs. I would
like
not to use those, but neither do I want to use the SBMJOB command. I
need
an API that can be called or bound to an RPG or C program but that its
parameters are the same as those that the SBMJOB command takes.

Thanks in advance.

Javier Sanchez
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com



--

bryan
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

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