× 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.



Thanks Marco. I am gathering everything from you guys.
Stay well.


El vie, 11 mar 2022 a las 13:06, Marco Facchinetti (<
marco.facchinetti@xxxxxxxxx>) escribió:

Not so tricky:

SBMJOB CMD(CALL PGM(MUGEXECL) PARM(&IDSBM &NOMEPGM &AZIONE &XPARM1
&XPARM2 &XEMAIL)) +
JOB(&NOMEPGM) JOBQ(&NOMECODA) PRTDEV(&PRINTER) USER(&UTENTE)
SYSLIBL(*SYSVAL) +
CURLIB(*USRPRF) INLLIBL(*JOBD) LOGOUTPUT(*JOBD)
JOBMSGQFL(*PRTWRAP) HOLD(&HOLD) +
SCDTIME(&SCHEDULA)

RCVMSG MSGDTA(&ESITO)

You'll find in %subst(Esito:1:26) the submited job name.


HTH
--
Marco Facchinetti

Mr S.r.l.

Tel. 035 962885
Cel. 393 9620498

Skype: facchinettimarco


Il giorno mer 9 mar 2022 alle ore 00:39 Javier Sanchez <
javiersanchezbarquero@xxxxxxxxx> ha scritto:

There are quite a few. I worķ very much with sockets interfaces. I've
been
having an issue that I have been unable to solve. I'm using the spawn API
because this makes it easy to pass the socket descriptor from a listener
to
a worker job. Using SBMJOB needs a tricky handling of message APIs to get
the submitted job's qualified name or internal job id.

So I guess that if I get either the qualified job name or the internal
job
id just as that API call ends, that makes it easier to pass the socket
descriptor to the worker program.

This way I could use this approach and maybe the issue goes away.

That is what I want to try. I already wrote a similar approach many
years
ago but that worķs only if you do some tricky use of a Unix socket pair
and then identify the worker job to finally pass the original client
socket.

Thanks Jon.


El mar., 8 de marzo de 2022 4:47 p. m., Jon Paris <
jon.paris@xxxxxxxxxxxxxx>
escribió:

It might help if you could say _why_ it can't be SBMJOB.

Why does SBMJOB via QCMDEC or system() not fill the role?


Jon Paris


On Mar 8, 2022, at 5:24 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

--
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

--
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

--
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.