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



Following from George's comment, " the execution class found selects the
program..."
This program can be any program that doesn't have parameters, and withing
reason, can do anything you need of it.

Traditionally, because QBATCH is setup this way, we specify QCMD as what I
call the "routing pgm", because it's specified on the ADDRTGE cmd.
Fundamentally, QCMD processes request messages, though it is more complex
when in an interactive subsystem like QINTER.

It's the processing of request messages where the OP's comment
RQSDTA is what I'd name "command line"
Kicks in. The RQSDTA parameter of SBMJOB is exactly that - a request message
which the routing pgm can receive. Now the RQSDTA can be anything that the
routing pgm understands, so for QCMD, that would be a CMD, typically CALL
PGMX.

The purpose of trying to explain the difference between RQSDTA and RTGDTA,
is because they provide two ways of achieving the same thing, namely:
1. As the OP has done - to specify QCMD as the routing pgm (on ADDRTGE), and
then specify "CALL MYPGM" on the RQSDTA of the JOBD of the ASJ.
2. He could have specified MYPGM on the ADDRTGE, making it the routing pgm.
(I don't recall it having any parameters). As the only ADDRTGE had a compare
value of *ANY, this would work nicely - satisfying George's notes. (In this
case any RQSDTA on the JOBD would be ignored by MYPGM, though it could still
be retrieved)


-----Original Message-----
From: C400-L <c400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of
georgelemen@xxxxxxxxxx
Sent: Friday, 17 December 2021 9:00 AM
To: c400-l@xxxxxxxxxxxxxxxxxx
Subject: Re: [C400-L] Using Data Queues in C, with V4 -- RTGDTA

Hi Chris and Patrick --

The routing data (in Submit job and in communications jobs) is matched
against subsystem Routing Data entries in the subsystem description. The
first match allows the execution class found selects the program, execution
class object and subsystem memory pool the job runs.

I found the following link to IBM's subsystem documentation that details
subsystem management (including routing entries) at
https://www.ibm.com/docs/en/i/7.1?topic=work-managing-subsystems

Hope this helps.
Best regards
George Lemen



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

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.