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



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.

This thread ...

Follow-Ups:
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.