|
One answer is the spawn.
To use the SBMJOB and easily get the message text, and data containing the
job name, then you could try
select message_tokens, message_text
from table(qsys2.joblog_info('*')) A
where message_id='CPC1221'
order by ordinal_position desc
fetch first row only;
https://www.ibm.com/docs/en/ssw_ibm_i_74/rzajq/rzajqudfjobloginfo.htm
Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1
Group Dekko
Dept 1600
Mail to: 7310 Innovation Blvd, Suite 104
Ft. Wayne, IN 46818
Ship to: 7310 Innovation Blvd, Dock 9C
Ft. Wayne, IN 46818
http://www.dekko.com
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of
Javier Sanchez
Sent: Wednesday, March 9, 2022 1:11 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: SUBMIT JOB API
CAUTION: This email originated from outside of the organization. Do not
click links or open attachments unless you recognize the sender and know
the content is safe.
So, do I jave an answer to my question yet?
Thanks!
El mar., 8 de marzo de 2022 5:39 p. m., Javier Sanchez <
javiersanchezbarquero@xxxxxxxxx> escribió:
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 pairsocket.
and then identify the worker job to finally pass the original client
affiliate
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:
without
Good day everyone. Is there a specific API that can submit a job
having to use the SBMJOB command?like
I know that there exist a few that "spawn" BCI -type of jobs. I would
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 itslist
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
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.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
--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 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.