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

Depends on how current you are with your OS.

TR1 of 7.5 and TR7 of 7.4 added REMOTE as in
select *
from remote table(MAIL4.qsys2.job_info(

Prior to that there was this fake:
select *
from table(qsys2.job_info(
WHERE 1 IN (select 1 from MAIL4.sysibm.sysdummy1)

On Tue, Feb 21, 2023 at 10:06 AM Steve McKay <samckay1@xxxxxxxxx> wrote:

All -

I want to run a CL on SYSA that will pass 2 parameters - 1 input, 1 output
- to a CL on SYSB and get a result back in the program on SYSA.

I want a CL program that checks to see if a user has jobs running on a
remote system. I want to provide a user profile from SYSA, call the
program on SYSB, SYSB will use QSYS2.JOB_INFO to determine whether there
are jobs running for the user on SYSB and return 'Y' or 'N' to the program
on SYSA.

Can I use RUNSQL with 3 part naming from SYSA to call the program on SYSB?
If not, what other options do I have? Remember that I need to pass values
back and forth between SYSA and SYSB.


Steve McKay
(205) 585-8424
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

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2023 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.