|
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'vebeen
having an issue that I have been unable to solve. I'm using the spawn APIto
because this makes it easy to pass the socket descriptor from a listener
a worker job. Using SBMJOB needs a tricky handling of message APIs to getjob
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
id just as that API call ends, that makes it easier to pass the socketyears
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
ago but that worķs only if you do some tricky use of a Unix socket pairwould
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.without
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
having to use the SBMJOB command?
I know that there exist a few that "spawn" BCI -type of jobs. I
itslike
not to use those, but neither do I want to use the SBMJOB command. Ineed
an API that can be called or bound to an RPG or C program but that
mailingparameters are the same as those that the SBMJOB command takes.
Thanks in advance.
Javier Sanchez
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
affiliatelist
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxxrelated questions.
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
Help support midrange.com by shopping at amazon.com with our
relatedlink: https://amazon.midrange.comlist
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
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
listquestions.--
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
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 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.