Re: Using Data Queues in C, with V4

<rob-VGj5NKMg/[email protected]> Wed, 15 Dec 2021 21:27:21 +1100
Newsgroups gmane.comp.lang.as400.c
Message-ID <[email protected]>
Does the COMRECV    *JOBD have a user profile specified on it?
- all *JOBD associated with ASJ require it

-----Original Message-----
From: C400-L <[email protected]> On Behalf Of Patrik Schindler
Sent: Wednesday, 15 December 2021 7:50 PM
To: Bare Metal Programming IBM i (AS/400 and iSeries) <[email protected]>
Subject: Re: [C400-L] Using Data Queues in C, with V4

Hello Niels,

Am 15.12.2021 um 00:26 schrieb Niels Liisberg <[email protected]>:

> 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: [email protected] To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/c400-l
or email: [email protected] 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

-- 
This is the Bare Metal Programming IBM i (AS/400 and iSeries) (C400-L) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/c400-l
or email: [email protected]
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