Does the COMRECV *JOBD have a user profile specified on it?
- all *JOBD associated with ASJ require it
-----Original Message-----
From: C400-L <c400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Patrik Schindler
Sent: Wednesday, 15 December 2021 7:50 PM
To: Bare Metal Programming IBM i (AS/400 and iSeries) <c400-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: [C400-L] Using Data Queues in C, with V4
Hello Niels,
Am 15.12.2021 um 00:26 schrieb Niels Liisberg <nli@xxxxxxxxxxxxxxxxx>:
Else give me a shout if you can’t make it work.
It does work, thanks a lot!
Just fighting the ASJ tangle. Just as related objects are grouped in a library, I want a separate SBS for the two tasks/jobs/processes to run in.
I've created these objects/types:
COMRECV *PGM
HAUSTASKS *JOBQ
COMRECV *JOBD
RTSCHED *CLS
HAUSTASKS *SBSD
After gleaning on the QBATCH SBSD, I added a *ANY entry to the SBSD so anything unknown gets routed to QCMD. (That prevented logs in QEZJOBLOG stating there is no matching routing data.) But the COMRECV *PGM does not show up in wrkactjob after starting the SBS.
Looking into QSYSOPR's MSGQ shows nothing. The system log (DSPLOG) shows the *PGM starts and ends with RC=0 immediately. The same is visible when I change the JOBD to force a job log: Ended after 1 second with RC=0.
When I start it by hand in a 5250 session, it just runs (and blocks the session, as expected), and adds entries to the *DTAQ.
When I submit COMRECV by hand (SBMJOB) replicating all the parameters in the ASJ entry, COMRECV is showing up in WRKACTJOB! Thus, hasn't ended by itself as with an ASJ!
But what could go wrong with an ASJ? Mysterious…
:wq! PoC
--
This is the Bare Metal Programming IBM i (AS/400 and iSeries) (C400-L) mailing list To post a message email: C400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/c400-l
or email: C400-L-request@xxxxxxxxxxxxxxxxxx Before posting, please take a moment to review the archives at
https://archive.midrange.com/c400-l.
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.